More work on the api. Also auth middleware stuff
More work on the placeholder functions for the Linstrom API Additionally, started work on a slightly more sophisticated authentication control system And ran `go generate` again
This commit is contained in:
parent
b9c95a0297
commit
873f52d64f
14 changed files with 637 additions and 300 deletions
|
@ -8,11 +8,12 @@ func setupApiRouter() http.Handler {
|
|||
router.Handle("/linstrom/", setupLinstromApiRouter())
|
||||
|
||||
// Section MastoApi
|
||||
// First segment are endpoints that will need to be moved to primary router since at top route
|
||||
router.HandleFunc("GET /oauth/authorize", placeholderEndpoint)
|
||||
router.HandleFunc("POST /oauth/token", placeholderEndpoint)
|
||||
router.HandleFunc("POST /oauth/revoke", placeholderEndpoint)
|
||||
router.HandleFunc("GET /.well-known/oauth-authorization-server", placeholderEndpoint)
|
||||
|
||||
// These ones are actually mounted under /api/
|
||||
router.HandleFunc("POST /v1/apps", placeholderEndpoint)
|
||||
router.HandleFunc("GET /v1/apps/verify_credentials", placeholderEndpoint)
|
||||
router.HandleFunc("POST /v1/emails/confirmations", placeholderEndpoint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue