feat: reimplement websocket to use hono

This commit is contained in:
Aarnav Tale
2025-03-24 10:52:29 -04:00
parent c066b3064d
commit 9a1051b9af
13 changed files with 337 additions and 351 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export async function loader({
// We shouldn't session invalidate if Headscale is down
if (healthy) {
try {
await context.client.get('/api/v1/apikey', session.get('api_key')!);
await context.client.get('v1/apikey', session.get('api_key')!);
} catch (error) {
if (error instanceof ResponseError) {
log.debug('api', 'API Key validation failed %o', error);