Add OAuth controller

This commit is contained in:
Alex Gleason
2023-03-04 21:36:53 -06:00
parent 8ed662321d
commit b36b8ea7d2
3 changed files with 29 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
import { Hono } from '@/deps.ts';
import { appVerifyCredentials, createAppController } from './api/apps.ts';
import { appVerifyCredentials, createAppController } from './api/apps.ts';
import instanceController from './api/instance.ts';
import { createTokenController } from './api/oauth.ts';
const app = new Hono();
@@ -10,4 +11,6 @@ app.get('/api/v1/instance', instanceController);
app.get('/api/v1/apps/verify_credentials', appVerifyCredentials);
app.post('/api/v1/apps', createAppController);
app.post('/oauth/token', createTokenController);
export default app;