Commit Graph

3 Commits

Author SHA1 Message Date
1449e816e1 API: Don't send response if no res object is passed to auth check 2023-04-17 14:29:33 +02:00
c5ab964cef API: Add type filter to most-recent-drop
otherwise claims would break the output
2023-04-05 13:07:20 +02:00
f1e01f2a9f API: Add experimental Json API
in preparation for external healthchecks and the
admin backend. We define a couple test routes:

- / List all routes
- /ping Replies pong for online-checks
- /stats Get high-level bot statistics
- /most-recent-drop Returns the most recent entry from dropHistories

The last two routes require a valid apikey header.
All routes are prefixed by /api/v1
2023-04-05 12:00:46 +02:00