Gregniuki commited on
Commit
46a06f8
·
1 Parent(s): bb543a6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -8,17 +8,17 @@ from sqlalchemy.orm import Session
8
  from auth import verify_token, oauth2_scheme, auth_views
9
  from database import get_db, get_user_by_email
10
  import auth
11
- #import tts
12
 
13
  app = FastAPI()
14
- router = APIRouter()
15
  templates = Jinja2Templates(directory="templates")
16
 
17
  # Include the authentication router with the prefix '/auth'
18
- app.include_router(auth.router, prefix="/auth")
19
 
20
  # Include the TTS router with the prefix '/tts'
21
- app.include_router(tts.router, prefix="/tts")
22
 
23
  # Dependency for verifying the user's token
24
  def get_current_user(token: str = Depends(verify_token)):
 
8
  from auth import verify_token, oauth2_scheme, auth_views
9
  from database import get_db, get_user_by_email
10
  import auth
11
+ import tts
12
 
13
  app = FastAPI()
14
+ #router = APIRouter()
15
  templates = Jinja2Templates(directory="templates")
16
 
17
  # Include the authentication router with the prefix '/auth'
18
+ #app.include_router(auth.router, prefix="/auth")
19
 
20
  # Include the TTS router with the prefix '/tts'
21
+ #app.include_router(tts.router, prefix="/tts")
22
 
23
  # Dependency for verifying the user's token
24
  def get_current_user(token: str = Depends(verify_token)):