16 lines
354 B
Python
16 lines
354 B
Python
from fastapi import FastAPI
|
|
from src.web.protected_routes.routes import router as protected_router
|
|
import uvicorn
|
|
|
|
app=FastAPI(root_path="/")
|
|
app.include_router(router=protected_router)
|
|
|
|
@app.get("")
|
|
def root()->dict:
|
|
return {"root":"hello, this is root"}
|
|
|
|
def main():
|
|
uvicorn.run("main:app", reload=True)
|
|
|
|
if __name__=="__main__":
|
|
main() |