Commit 4c17e724 authored by nano's avatar nano

get apps.json

parent bb16d4cf
This diff is collapsed.
......@@ -20,6 +20,10 @@ const router = new Router();
// })
// });
router.get('/v2/apps', async(ctx: Context, next) => {
ctx.body = await mongodb.Apps.find({}).toArray()
})
router.get('/v1/apps', async (ctx: Context, next) => {
let payload = ctx.request.query
if((!payload.author && !payload.admin)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment