mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: adapt mock code to new data stuctures
This commit is contained in:
parent
768c270959
commit
f4c239d848
3 changed files with 202 additions and 175 deletions
10
app.py
10
app.py
|
|
@ -11,6 +11,8 @@ from fastapi.staticfiles import StaticFiles
|
|||
from fastapi_jwt_auth.exceptions import AuthJWTException
|
||||
from fastapi.middleware.gzip import GZipMiddleware
|
||||
|
||||
from src.services.mocks.initial import create_initial_data
|
||||
|
||||
# from src.services.mocks.initial import create_initial_data
|
||||
|
||||
########################
|
||||
|
|
@ -83,8 +85,8 @@ async def config():
|
|||
return config.dict()
|
||||
|
||||
|
||||
# @app.get("/initial_data")
|
||||
# async def initial_data(request: Request):
|
||||
@app.get("/initial_data")
|
||||
async def initial_data(request: Request):
|
||||
|
||||
# await create_initial_data(request)
|
||||
# return {"Message": "Initial data created 🤖"}
|
||||
await create_initial_data(request)
|
||||
return {"Message": "Initial data created 🤖"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue