mirror of
https://github.com/tale/headplane.git
synced 2026-09-04 19:25:43 +00:00
feat: reimplement websocket to use hono
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user