feat: initial REST endpoints and websocket
/create /delete /ws
This commit is contained in:
13
justfile
13
justfile
@@ -1,5 +1,5 @@
|
||||
_list:
|
||||
@just --list
|
||||
@just --list --unsorted
|
||||
|
||||
# Check project
|
||||
check:
|
||||
@@ -16,3 +16,14 @@ fmt:
|
||||
just --unstable --fmt
|
||||
cargo fmt
|
||||
taplo fmt `fd --extension=toml`
|
||||
|
||||
run-backend:
|
||||
RUST_LOG=debug cargo run -p backend
|
||||
|
||||
# POST /create
|
||||
create-gul-bus:
|
||||
xh post 127.0.0.1:4000/create goal='pej på en gul bus'
|
||||
|
||||
# ws://<host>/ws
|
||||
subscribe-ws:
|
||||
websocat ws://127.0.0.1:4000/ws
|
||||
|
||||
Reference in New Issue
Block a user