fix-confirm

This commit is contained in:
2022-10-05 19:52:17 +03:00
parent 21eb082aa3
commit 99a1d5a867
3 changed files with 7 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ from auth.authenticate import JWTAuthenticate
from auth.oauth import oauth_login, oauth_authorize
from base.redis import redis
from base.resolvers import resolvers
from resolvers.auth import confirm_email_handler
# from resolvers.auth import confirm_email_handler
from resolvers.zine import ShoutsCache
from services.main import storages_init
from services.stat.reacted import ReactedStorage
@@ -54,8 +54,8 @@ async def shutdown():
routes = [
Route("/oauth/{provider}", endpoint=oauth_login),
Route("/oauth_authorize", endpoint=oauth_authorize),
Route("/confirm-email/{token}", endpoint=confirm_email_handler), # should be called on client
Route("/oauth-authorize", endpoint=oauth_authorize),
# Route("/confirm-email/{token}", endpoint=confirm_email_handler), # should be called on client
]
app = Starlette(