Schemas updated
This commit is contained in:
14
ApiServices/AuthService/create_route.py
Normal file
14
ApiServices/AuthService/create_route.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from typing import List
|
||||
from fastapi import APIRouter, FastAPI
|
||||
|
||||
|
||||
class RouteRegisterController:
|
||||
|
||||
def __init__(self, app: FastAPI, router_list: List[APIRouter]):
|
||||
self.router_list = router_list
|
||||
self.app = app
|
||||
|
||||
def register_routes(self):
|
||||
for router in self.router_list:
|
||||
self.app.include_router(router)
|
||||
return self.app
|
||||
Reference in New Issue
Block a user