setup basic project with Python Robyn
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Provide subrouter for api/v1
|
||||
"""
|
||||
|
||||
from robyn import SubRouter
|
||||
|
||||
|
||||
api_router = SubRouter(prefix="/api/v1")
|
||||
|
||||
|
||||
@api_router.get("/health")
|
||||
def health():
|
||||
"""
|
||||
Return health info
|
||||
"""
|
||||
return {"status": "ok"}
|
||||
Reference in New Issue
Block a user