BinaryONe commited on
Commit
133cda9
·
1 Parent(s): bbfd63d

Configured Mapping of Listings

Browse files
Files changed (2) hide show
  1. main.py +3 -1
  2. server/listing.py +4 -1
main.py CHANGED
@@ -1,4 +1,6 @@
1
- from fastapi import FastAPI
 
 
2
 
3
  from server import app
4
 
 
1
+ from fastapi import FastAPI, APIRouter
2
+ from Server.Listing import router as listing_router
3
+
4
 
5
  from server import app
6
 
server/listing.py CHANGED
@@ -5,7 +5,10 @@ from Tools import size_calculator
5
  from .config import Server
6
  #from config import
7
 
8
- router = APIRouter()
 
 
 
9
  db = PUBLICFilesDB(Server.MONGO_DB_URI, Server.DB_NAME) # Replace with actual URI and database name
10
 
11
  @router.get("/movies")
 
5
  from .config import Server
6
  #from config import
7
 
8
+ router = APIRouter(
9
+ prefix="/list",
10
+ tags=["list"],
11
+ )
12
  db = PUBLICFilesDB(Server.MONGO_DB_URI, Server.DB_NAME) # Replace with actual URI and database name
13
 
14
  @router.get("/movies")