Skip to content

Commit 461ec94

Browse files
oAuth2 setup on api's
1 parent 4edbcb4 commit 461ec94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

BaseApp/dependencies.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ALGORITHM = "HS256"
1313
ACCESS_TOKEN_EXPIRE_MINUTES = int(os.environ.get('EXPIRE_MINUTES'))
1414

15-
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/user/token")
15+
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/token")
1616

1717

1818
# Dependencies are created here

BaseApp/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222

2323
# Include App to FastApi Instance
24-
app.include_router(UserApp.router.api, prefix="/user")
24+
app.include_router(UserApp.router.api, prefix="/auth")
2525
app.include_router(BlogApp.router.api, prefix="/blog")
2626

2727
# Run FastApi to main

0 commit comments

Comments
 (0)