Add boilerplate accounts controller and fallback controller

This commit is contained in:
Alex Gleason
2023-03-04 21:49:33 -06:00
parent b36b8ea7d2
commit 7285d71bda
4 changed files with 25 additions and 4 deletions

7
src/api/accounts.ts Normal file
View File

@@ -0,0 +1,7 @@
import type { Context } from '@/deps.ts';
function credentialsController(c: Context) {
return c.json({});
}
export { credentialsController };

View File

@@ -14,8 +14,8 @@ function createAppController(c: Context) {
return c.json(FAKE_APP);
}
function appVerifyCredentials(c: Context) {
function appCredentialsController(c: Context) {
return c.json(FAKE_APP);
}
export { appVerifyCredentials, createAppController };
export { appCredentialsController, createAppController };

5
src/api/fallback.ts Normal file
View File

@@ -0,0 +1,5 @@
import type { Context } from '@/deps.ts';
const emptyArrayController = (c: Context) => c.json([]);
export { emptyArrayController };