mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: root_path issue
This commit is contained in:
parent
84c6e8a388
commit
19111abf82
1 changed files with 1 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ from fastapi_jwt_auth.exceptions import AuthJWTException
|
||||||
from fastapi.middleware.gzip import GZipMiddleware
|
from fastapi.middleware.gzip import GZipMiddleware
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# from src.services.mocks.initial import create_initial_data
|
# from src.services.mocks.initial import create_initial_data
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
|
@ -26,7 +25,6 @@ app = FastAPI(
|
||||||
title=learnhouse_config.site_name,
|
title=learnhouse_config.site_name,
|
||||||
description=learnhouse_config.site_description,
|
description=learnhouse_config.site_description,
|
||||||
version="0.1.0",
|
version="0.1.0",
|
||||||
root_path="/",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
|
|
@ -61,8 +59,8 @@ app.mount("/content", StaticFiles(directory="content"), name="content")
|
||||||
# Global Routes
|
# Global Routes
|
||||||
app.include_router(v1_router)
|
app.include_router(v1_router)
|
||||||
|
|
||||||
|
|
||||||
# General Routes
|
# General Routes
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
async def root():
|
async def root():
|
||||||
return {"Message": "Welcome to LearnHouse ✨"}
|
return {"Message": "Welcome to LearnHouse ✨"}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue