diff --git a/Makefile b/Makefile index f2c24ae4..2c4ace6c 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ all: start-fastapi: @fastapi dev 'store/app/main.py' --port 8080 -start-frontend-rebuild: - @cd frontend && npm run watch +start-frontend: + @cd frontend && npm start start-docker: @docker kill store-db || true diff --git a/store/app/main.py b/store/app/main.py index 9baa97ed..85667687 100644 --- a/store/app/main.py +++ b/store/app/main.py @@ -29,6 +29,11 @@ async def value_error_exception_handler(request: Request, exc: ValueError) -> JS ) +@app.get("/") +async def read_root() -> bool: + return True + + app.include_router(users_router, prefix="/users", tags=["users"]) app.include_router(robots_router, prefix="/robots", tags=["robots"]) app.include_router(parts_router, prefix="/parts", tags=["parts"])