2023-03-05 01:55:28 +00:00
|
|
|
import { Hono } from '@/deps.ts';
|
2023-03-05 02:59:39 +00:00
|
|
|
import { appVerifyCredentials, createAppController } from './api/apps.ts';
|
2023-03-05 01:55:28 +00:00
|
|
|
|
2023-03-05 02:19:57 +00:00
|
|
|
import instanceController from './api/instance.ts';
|
|
|
|
|
2023-03-05 01:55:28 +00:00
|
|
|
const app = new Hono();
|
|
|
|
|
2023-03-05 02:19:57 +00:00
|
|
|
app.get('/api/v1/instance', instanceController);
|
2023-03-05 01:55:28 +00:00
|
|
|
|
2023-03-05 02:59:39 +00:00
|
|
|
app.get('/api/v1/apps/verify_credentials', appVerifyCredentials);
|
|
|
|
app.post('/api/v1/apps', createAppController);
|
|
|
|
|
2023-03-05 01:55:28 +00:00
|
|
|
export default app;
|