mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-01 11:41:00 +00:00
Make slash on OAuth endpoints optional to handle clients that cannot follow redirects. (#670)
This commit is contained in:
parent
7c34ac78ed
commit
39129f5da7
1 changed files with 3 additions and 3 deletions
|
@ -344,9 +344,9 @@ urlpatterns = [
|
||||||
path("inbox/", activitypub.Inbox.as_view(), name="shared_inbox"),
|
path("inbox/", activitypub.Inbox.as_view(), name="shared_inbox"),
|
||||||
# API/Oauth
|
# API/Oauth
|
||||||
path("api/", include("api.urls")),
|
path("api/", include("api.urls")),
|
||||||
path("oauth/authorize", oauth.AuthorizationView.as_view()),
|
re_path(r"oauth/authorize/?$", oauth.AuthorizationView.as_view()),
|
||||||
path("oauth/token", oauth.TokenView.as_view()),
|
re_path(r"oauth/token/?$", oauth.TokenView.as_view()),
|
||||||
path("oauth/revoke", oauth.RevokeTokenView.as_view()),
|
re_path(r"oauth/revoke/?$", oauth.RevokeTokenView.as_view()),
|
||||||
# Stator
|
# Stator
|
||||||
path(".stator/", stator.RequestRunner.as_view()),
|
path(".stator/", stator.RequestRunner.as_view()),
|
||||||
# Django admin
|
# Django admin
|
||||||
|
|
Loading…
Reference in a new issue