Skip to content

Commit

Permalink
health checks against root fix
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jun 10, 2024
1 parent c2591b8 commit 717c8f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions store/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

0 comments on commit 717c8f2

Please sign in to comment.