feat: reimplement websocket to use hono
This commit is contained in:
parent
c066b3064d
commit
9a1051b9af
13 changed files with 337 additions and 351 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue