19 lines
321 B
Python
19 lines
321 B
Python
from fastapi import FastAPI
|
|
from src.web.protected import router as protected_routers
|
|
import uvicorn
|
|
|
|
app=FastAPI(root_path="/")
|
|
app.include_router(protected_routers)
|
|
@app.get("")
|
|
def root()->dict:
|
|
return {"root":"true"}
|
|
|
|
|
|
|
|
def main():
|
|
uvicorn.run("main:app", reload=True)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|