-
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.
Merge pull request #14 from hcholab/status-endpoints
add status and version endpoints
- Loading branch information
Showing
3 changed files
with
20 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
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,15 @@ | ||
from typing import Tuple | ||
from quart import Blueprint | ||
|
||
from src.utils import constants | ||
|
||
|
||
bp = Blueprint("status", __name__, url_prefix="") | ||
|
||
@bp.route("/status", methods=["GET"]) | ||
async def status() -> Tuple[dict, int]: | ||
return {}, 200 | ||
|
||
@bp.route("/version", methods=["GET"]) | ||
async def version() -> Tuple[dict, int]: | ||
return {"appVersion": constants.APP_VERSION, "buildVersion": constants.BUILD_VERSION}, 200 |
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