feat: add Hono API with JWT authentication

- Implement REST API using Hono framework with token-based auth
- Add JWT middleware for scope-based access control
- Create version endpoints: launcher, downloader, patches, server
- Add account lookup endpoints (by UUID or username)
- Fetch server software with signed URLs and full version data
- Add token signing utility script for testing
- Support configurable account UUID for game session creation
- Integrate API server with existing module system

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
devilreef 2026-01-17 00:24:27 +06:00
parent 317c886529
commit 65f900169b
11 changed files with 489 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ state.json
.claude
tokens/*
!tokens/.gitkeep
hytale-endpoints.md
### Linux ###
*~