Final touchups, moved the root route to routers

Changed the root message
This commit is contained in:
tanshu 2020-05-04 14:59:10 +05:30
parent 25787fa8c6
commit e832032cd6
2 changed files with 5 additions and 5 deletions

View File

@ -7,11 +7,6 @@ from .config import Settings as settings
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
app.include_router(routers.router)

View File

@ -14,6 +14,11 @@ def get_settings():
return config.Settings
@router.get("/")
async def root():
return {"message": "Bifrost updater version 2.0"}
@router.get("/update")
def update_view(
domain: str,