Enable CORS, fix nsec1 keys

This commit is contained in:
Alex Gleason
2023-03-04 22:49:08 -06:00
parent 825fed7d21
commit 48f04e48de
4 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import { Hono } from '@/deps.ts';
import { cors, Hono } from '@/deps.ts';
import { credentialsController } from './api/accounts.ts';
import { appCredentialsController, createAppController } from './api/apps.ts';
@@ -8,6 +8,8 @@ import { createTokenController } from './api/oauth.ts';
const app = new Hono();
app.use('/*', cors());
app.get('/api/v1/instance', instanceController);
app.get('/api/v1/apps/verify_credentials', appCredentialsController);