diff --git a/README.md b/README.md index be9cc41..f7af25d 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ Status endpoint, used for *healthcheck*. Shows also current version and commit h OpenAPI specifications rendered from `GET /openapi.json`. +### `GET /-/manage` + +Shows a very basic UI to delete origins or leases. + ### `GET /-/origins?leases=false` List registered origins. diff --git a/app/main.py b/app/main.py index 586c0c1..2bcb4c3 100644 --- a/app/main.py +++ b/app/main.py @@ -75,6 +75,40 @@ async def status(request: Request): return JSONResponse({'status': 'up', 'version': VERSION, 'commit': COMMIT, 'debug': DEBUG}) +@app.get('/-/manage') +async def _manage(request: Request): + response = ''' + + + + FastAPI-DLS Management + + + + + + + + + ''' + return HTMLResponse(response) + + @app.get('/-/origins') async def _origins(request: Request, leases: bool = False): session = sessionmaker(bind=db)()