move to the proper HTTP methods
This commit is contained in:
parent
dc904dd0ff
commit
13159e5d78
4 changed files with 20 additions and 16 deletions
11
README.md
11
README.md
|
@ -46,11 +46,12 @@ docker compose up --build
|
|||
|
||||
Returns stored timezone and username for the given user ID.
|
||||
|
||||
### `GET /set?timezone=<iana_timezone>`
|
||||
### `POST /set`
|
||||
|
||||
Stores timezone for the authenticated user. Requires Discord OAuth session.
|
||||
Stores timezone for the authenticated user. Requires Discord OAuth session.
|
||||
Body: `application/x-www-form-urlencoded` with `timezone=<iana_timezone>`
|
||||
|
||||
### `GET /delete`
|
||||
### `DELETE /delete`
|
||||
|
||||
Deletes the authenticated user's timezone entry. Requires Discord OAuth session.
|
||||
|
||||
|
@ -69,7 +70,3 @@ Starts OAuth2 authentication flow.
|
|||
### `GET /auth/discord/callback`
|
||||
|
||||
Handles OAuth2 redirect and sets a session cookie.
|
||||
|
||||
## License
|
||||
|
||||
[BSD-3-Clause](LICENSE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue