temp
This commit is contained in:
@@ -5,7 +5,10 @@ import { shopDefine } from './define.ts';
|
||||
app
|
||||
.route({
|
||||
...shopDefine.get('getRegistry'),
|
||||
middleware: ['auth'],
|
||||
middleware: ['admin-auth'],
|
||||
metadata: {
|
||||
admin: true,
|
||||
}
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
const registry = assistantConfig.getRegistry();
|
||||
@@ -17,7 +20,10 @@ app
|
||||
app
|
||||
.route({
|
||||
...shopDefine.get('listInstalled'),
|
||||
middleware: ['auth'],
|
||||
middleware: ['admin-auth'],
|
||||
metadata: {
|
||||
admin: true,
|
||||
}
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
const manager = new AssistantApp(assistantConfig);
|
||||
@@ -30,7 +36,10 @@ app
|
||||
app
|
||||
.route({
|
||||
...shopDefine.get('install'),
|
||||
middleware: ['auth'],
|
||||
middleware: ['admin-auth'],
|
||||
metadata: {
|
||||
admin: true,
|
||||
}
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
// https://localhost:51015/client/router?path=shop&key=install
|
||||
@@ -52,7 +61,10 @@ app
|
||||
app
|
||||
.route({
|
||||
...shopDefine.get('uninstall'),
|
||||
middleware: ['auth'],
|
||||
middleware: ['admin-auth'],
|
||||
metadata: {
|
||||
admin: true,
|
||||
}
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
// https://localhost:51015/client/router?path=shop&key=uninstall
|
||||
|
||||
Reference in New Issue
Block a user