|
|
|
@ -355,7 +355,7 @@ func Start() error {
@@ -355,7 +355,7 @@ func Start() error {
|
|
|
|
|
|
|
|
|
|
// Start auth flow
|
|
|
|
|
http.HandleFunc("/api/auth/indieauth", middleware.RequireUserAccessToken(indieauth.StartAuthFlow)) |
|
|
|
|
http.HandleFunc("/api/auth/indieauth/callback", indieauth.HandleRedirect) |
|
|
|
|
http.HandleFunc("/api/auth/indieauth/callback", middleware.RequireAdminAuth(indieauth.HandleRedirect)) |
|
|
|
|
http.HandleFunc("/api/auth/provider/indieauth", indieauth.HandleAuthEndpoint) |
|
|
|
|
|
|
|
|
|
http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest)) |
|
|
|
|