mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-17 12:24:24 +01:00
Add boilerplate accounts controller and fallback controller
This commit is contained in:
7
src/api/accounts.ts
Normal file
7
src/api/accounts.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Context } from '@/deps.ts';
|
||||
|
||||
function credentialsController(c: Context) {
|
||||
return c.json({});
|
||||
}
|
||||
|
||||
export { credentialsController };
|
||||
@@ -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
5
src/api/fallback.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { Context } from '@/deps.ts';
|
||||
|
||||
const emptyArrayController = (c: Context) => c.json([]);
|
||||
|
||||
export { emptyArrayController };
|
||||
Reference in New Issue
Block a user