Skip to content

Commit

Permalink
[added] Health api.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashishkumar123 committed Feb 10, 2024
1 parent 6cb514c commit 70d0d05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.colorTheme": "Monokai Pro (Filter Spectrum)",
"workbench.colorTheme": "Monokai Pro (Filter Machine)",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
Expand Down
5 changes: 5 additions & 0 deletions ninjacrud/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@

api = NinjaAPI(docs=Swagger())
api.add_router("/students/", "main.api.router")


@api.get("/")
def check_health(request):
return {"status_code": "200", "message": "ok"}

0 comments on commit 70d0d05

Please sign in to comment.