2020-04-07 18:25:09 +02:00
|
|
|
const couchdb = require("../../db");
|
|
|
|
|
|
|
|
const controller = {
|
|
|
|
create: async ctx => {
|
2020-04-07 18:41:57 +02:00
|
|
|
const clientDatabase = couchdb.db.use(ctx.params.clientId);
|
|
|
|
ctx.body = await clientDatabase.create(ctx.request.body.appname);
|
2020-04-07 18:25:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = controller;
|