Skip to content

Commit

Permalink
Moved oauth to service folder as this module acts like a service for …
Browse files Browse the repository at this point in the history
…other layers
  • Loading branch information
raikarn committed Aug 10, 2024
1 parent 5c5d1be commit bf60f87
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api/token.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import APIRouter, Depends, HTTPException
from backend.models.pydantic_models import Token
from backend.oauth import authenticate_user, create_access_token
from backend.service.oauth import authenticate_user, create_access_token
from backend.config import ACCESS_TOKEN_EXPIRE_MINUTES
from fastapi.security import OAuth2PasswordRequestForm
from datetime import timedelta
Expand Down
2 changes: 1 addition & 1 deletion backend/api/user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi import APIRouter, Depends, HTTPException
from backend.models.sqlalchemy_models import User
from backend.db.sessions import session
from backend.oauth import encrypt_password, get_current_user
from backend.service.oauth import encrypt_password, get_current_user


user_router = APIRouter()
Expand Down
2 changes: 1 addition & 1 deletion backend/db/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from backend.models.sqlalchemy_models import User
from backend.db.sessions import session
from backend.oauth import encrypt_password, get_user
from backend.service.oauth import encrypt_password, get_user


def populate_admin_user():
Expand Down
File renamed without changes.

0 comments on commit bf60f87

Please sign in to comment.