Fix up API documentation in main.rs

pull/5/head
~erin 2021-07-16 13:51:23 -04:00
parent 8a6cd4b947
commit 1b242075d7
Signed by: erin
GPG Key ID: DA70E064A8C70F44
1 changed files with 1 additions and 3 deletions

View File

@ -24,9 +24,7 @@ fn index() -> &'static str {
`GET /api/users/<name>/<pin>` Check if the user exists, and if the pin provided matches
`POST /api/register/<name>/<pin>/<new-pin>` Change a users pin (<new-pin> is an int)
`POST /api/register/<name>/<pin>/<new-name>` Change a users name (<new-pin> is an str)"
`POST /api/users/change/<name>/<pin>/<new-name>/<new-pin>` Change a users name and/or pin"
}
// The output is wrapped in a Result to allow matching on errors