temp
This commit is contained in:
@@ -140,6 +140,7 @@ app
|
||||
path: 'app',
|
||||
key: 'uploadFiles',
|
||||
middleware: ['auth'],
|
||||
isDebug: true,
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
try {
|
||||
@@ -264,23 +265,6 @@ app
|
||||
})
|
||||
.addTo(app);
|
||||
|
||||
app
|
||||
.route({
|
||||
path: 'app',
|
||||
key: 'getDomainApp',
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
const { domain } = ctx.query.data;
|
||||
// const query = {
|
||||
// }
|
||||
const app = await AppModel.findOne({ where: { domain } });
|
||||
if (!app) {
|
||||
throw new CustomError('app not found');
|
||||
}
|
||||
ctx.body = app;
|
||||
return ctx;
|
||||
})
|
||||
.addTo(app);
|
||||
|
||||
app
|
||||
.route({
|
||||
|
||||
Reference in New Issue
Block a user