File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
services/question-service/app Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
from fastapi import FastAPI
2
2
from dotenv import load_dotenv
3
- from app .routers import questions_router , metadata_router
3
+ from app .routers import questions_router , labels_router
4
4
5
5
load_dotenv ()
6
6
7
7
app = FastAPI ()
8
8
9
9
# Include routers
10
10
app .include_router (questions_router )
11
- app .include_router (metadata_router )
11
+ app .include_router (labels_router )
Original file line number Diff line number Diff line change 1
1
# Router imports for the question service
2
2
from .questions import router as questions_router
3
- from .metadata import router as metadata_router
3
+ from .labels import router as labels_router
4
4
5
- __all__ = ["questions_router" , "metadata_router " ]
5
+ __all__ = ["questions_router" , "labels_router " ]
Original file line number Diff line number Diff line change 8
8
)
9
9
10
10
router = APIRouter (
11
- prefix = "/metadata " ,
12
- tags = ["metadata " ]
11
+ prefix = "/labels " ,
12
+ tags = ["labels " ]
13
13
)
14
14
15
- @router .get ("/difficulties-topics " )
15
+ @router .get ("" )
16
16
def get_difficulties_topics ():
17
17
return list_difficulties_and_topics ()
18
18
You can’t perform that action at this time.
0 commit comments