6d86799e02
API: Serve static assets via express
2023-08-07 17:34:19 +02:00
4f62cceaa0
API: Redirect 404 routes to homepage
2023-05-25 09:06:13 +02:00
85cebd2886
API: Add missing auth check to POST /characters
2023-04-17 17:53:12 +02:00
aea807ca3c
API: Properly handle not found cases for groups and characters
2023-04-17 16:00:12 +02:00
3915956bea
API: Add routes for badges
2023-04-17 15:57:36 +02:00
833fcd4c74
API: Move character routes to separate file
2023-04-17 15:47:43 +02:00
2e04a85eb8
API: Move group routes to separate file
2023-04-17 15:46:28 +02:00
5712ea38c1
API: Move API Key auth to middelware file
2023-04-17 15:28:13 +02:00
e2f18e1df5
API: Add routes to create and update groups/characters
2023-04-17 15:07:29 +02:00
1b9693401c
API: Add routes to fetch groups and characters
2023-04-17 14:31:12 +02:00
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