first commit
This commit is contained in:
18
main.py
Normal file
18
main.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user