Skip to content

Commit

Permalink
Refactor health api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
s9891326 committed Nov 1, 2023
1 parent d04e426 commit 024c0a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions love_letter/web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ async def lobby_start_game(players: LobbyPlayers):
return presenter.as_view_model()


@app.get("/heath")
async def heath():
@app.get("/health")
async def health():
return {"success": True}


Expand Down
4 changes: 2 additions & 2 deletions tests/test_lobby_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
self.t.close()

def test_heath_api(self):
response = self.t.get("/heath")
def test_health_api(self):
response = self.t.get("/health")
data = response.json()
self.assertEqual(response.status_code, 200)
self.assertTrue(data["success"])
Expand Down

0 comments on commit 024c0a6

Please sign in to comment.