a pastebin clone
Go to file
2024-07-10 00:15:53 -05:00
migrations init commit 2024-07-02 22:57:48 -04:00
src refactor ui a bit 2024-07-10 00:15:53 -05:00
.gitignore init commit 2024-07-02 22:57:48 -04:00
build.rs init commit 2024-07-02 22:57:48 -04:00
Cargo.lock update settings and user id stuff 2024-07-08 22:09:49 -05:00
Cargo.toml init commit 2024-07-02 22:57:48 -04:00
README.md init commit 2024-07-02 22:57:48 -04:00

Shuttle shared Postgres DB with Axum

This template shows how to connect a Postgres database and use it for a simple TODO list app.

Example usage

curl -X POST -H 'content-type: application/json' localhost:8000/todos --data '{"note":"My todo"}'
# {"id":1,"note":"My todo"}

curl localhost:8000/todos/1
# {"id":1,"note":"My todo"}