Spaces:
Sleeping

thabsheeeeeer commited on
Commit
edc1e35
·
verified ·
1 Parent(s): 3ab3b85

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +3 -1
app/main.py CHANGED
@@ -1,5 +1,5 @@
1
  from fastapi import FastAPI
2
- from app.api import chat, upload, documents, auth
3
  from app.db.database import Base, engine
4
  from app.models import user, document, chat_message
5
  from fastapi.middleware.cors import CORSMiddleware
@@ -12,6 +12,8 @@ app.include_router(auth.router, prefix="/api/v1/auth", tags=["Auth"])
12
  app.include_router(upload.router, prefix="/api/v1/upload", tags=["Upload"])
13
  app.include_router(chat.router, prefix="/api/v1/chat", tags=["Chat"])
14
  app.include_router(documents.router, prefix="/api/v1/documents", tags=["Documents"])
 
 
15
 
16
  @app.get("/")
17
  def home():
 
1
  from fastapi import FastAPI
2
+ from app.api import chat, upload, documents, auth, admin
3
  from app.db.database import Base, engine
4
  from app.models import user, document, chat_message
5
  from fastapi.middleware.cors import CORSMiddleware
 
12
  app.include_router(upload.router, prefix="/api/v1/upload", tags=["Upload"])
13
  app.include_router(chat.router, prefix="/api/v1/chat", tags=["Chat"])
14
  app.include_router(documents.router, prefix="/api/v1/documents", tags=["Documents"])
15
+ app.include_router(admin.router, prefix="/api/v1/admin", tags=["Admin"])
16
+
17
 
18
  @app.get("/")
19
  def home():