-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .views import v1_router as router | ||
|
||
__all__ = ["router"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from fastapi import APIRouter | ||
|
||
v1_router = APIRouter(prefix="/v1/health", tags=["batch"]) | ||
|
||
|
||
@v1_router.get("/") | ||
def health_check(): | ||
# 현재로서는 추가로 체크할 게 없으므로 서버만 살아있는지 확인 | ||
return {"status": "OK"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
from fastapi.routing import APIRouter | ||
|
||
from waffledotcom.src.apps import batch, user | ||
from waffledotcom.src.apps import batch, health, user | ||
|
||
api_router = APIRouter(prefix="/api") | ||
api_router.include_router(user.router) | ||
api_router.include_router(batch.router) | ||
api_router.include_router(health.router) |