feat: initial REST endpoints and websocket

/create
/delete
/ws
This commit is contained in:
2023-06-10 18:54:23 +02:00
parent 5501b63379
commit 6e845907d1
9 changed files with 1476 additions and 3 deletions

View File

@@ -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