This commit is contained in:
2025-03-25 00:38:41 +08:00
parent cb490470c1
commit 64c70ce527
14 changed files with 261 additions and 73 deletions

View File

@@ -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({