Final touchups, moved the root route to routers
Changed the root message
This commit is contained in:
parent
25787fa8c6
commit
e832032cd6
@ -7,11 +7,6 @@ from .config import Settings as settings
|
|||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
||||||
@app.get("/")
|
|
||||||
async def root():
|
|
||||||
return {"message": "Hello World"}
|
|
||||||
|
|
||||||
|
|
||||||
app.include_router(routers.router)
|
app.include_router(routers.router)
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,6 +14,11 @@ def get_settings():
|
|||||||
return config.Settings
|
return config.Settings
|
||||||
|
|
||||||
|
|
||||||
|
@router.get("/")
|
||||||
|
async def root():
|
||||||
|
return {"message": "Bifrost updater version 2.0"}
|
||||||
|
|
||||||
|
|
||||||
@router.get("/update")
|
@router.get("/update")
|
||||||
def update_view(
|
def update_view(
|
||||||
domain: str,
|
domain: str,
|
||||||
|
Loading…
Reference in New Issue
Block a user