Redirect /embed/chat to /embed/chat/readonly. Closes #2716
This commit is contained in:
parent
890a61cd19
commit
3cccfbfc06
@ -383,6 +383,11 @@ func Start() error {
|
|||||||
http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest))
|
http.HandleFunc("/api/auth/fediverse", middleware.RequireUserAccessToken(fediverseauth.RegisterFediverseOTPRequest))
|
||||||
http.HandleFunc("/api/auth/fediverse/verify", fediverseauth.VerifyFediverseOTPRequest)
|
http.HandleFunc("/api/auth/fediverse/verify", fediverseauth.VerifyFediverseOTPRequest)
|
||||||
|
|
||||||
|
// Redirect /embed/chat
|
||||||
|
http.HandleFunc("/embed/chat", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
http.Redirect(w, r, "/embed/chat/readonly", http.StatusTemporaryRedirect)
|
||||||
|
})
|
||||||
|
|
||||||
// ActivityPub has its own router
|
// ActivityPub has its own router
|
||||||
activitypub.Start(data.GetDatastore())
|
activitypub.Start(data.GetDatastore())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user