Create and list apps
This commit is contained in:
parent
ca5410af6d
commit
8680155ccb
@ -18,12 +18,14 @@ export default async function handler(
|
|||||||
return res.status(405).end(`Method ${req.method} Not Allowed`);
|
return res.status(405).end(`Method ${req.method} Not Allowed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get all apps
|
||||||
async function getAllApps() {
|
async function getAllApps() {
|
||||||
const appList = await apps.getAll();
|
const appList = await apps.getAll();
|
||||||
|
|
||||||
return res.json(appList);
|
return res.json(appList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a new app
|
||||||
async function createApp() {
|
async function createApp() {
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user