Skip to content
Snippets Groups Projects
Commit fd5ac5b6 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

add db health endpoint

parent 219add9b
Branches
Tags
No related merge requests found
from . import db_health
from . import incidents
from . import misc
from . import self_api_handler_oauth
......
from jupyterhub.apihandlers import APIHandler
from jupyterhub.orm import Role
class DBHealthAPIHandler(APIHandler):
async def get(self):
Role.find(self.db, "any")
self.set_status(200)
default_handlers.append((r"/api/health_db", DBHealthAPIHandler))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment