add install base
This commit is contained in:
@@ -6,6 +6,7 @@ app
|
||||
.route({
|
||||
path: 'config',
|
||||
description: '获取配置',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
ctx.body = assistantConfig.getCacheAssistantConfig();
|
||||
@@ -17,6 +18,7 @@ app
|
||||
path: 'config',
|
||||
key: 'set',
|
||||
description: '设置配置',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
const { data } = ctx.query;
|
||||
|
||||
@@ -1,2 +1,13 @@
|
||||
import './config/index.ts'
|
||||
import './shop-install/index.ts'
|
||||
import { app } from '../app.ts';
|
||||
import './config/index.ts';
|
||||
import './shop-install/index.ts';
|
||||
|
||||
app
|
||||
.route({
|
||||
path: 'auth',
|
||||
id: 'auth',
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
//
|
||||
})
|
||||
.addTo(app);
|
||||
|
||||
@@ -23,6 +23,7 @@ app
|
||||
.route({
|
||||
path: 'shop',
|
||||
key: 'list-installed',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
// https://localhost:51015/client/router?path=shop&key=list-installed
|
||||
@@ -35,6 +36,7 @@ app
|
||||
.route({
|
||||
path: 'shop',
|
||||
key: 'install',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
// https://localhost:51015/client/router?path=shop&key=install
|
||||
@@ -51,6 +53,7 @@ app
|
||||
.route({
|
||||
path: 'shop',
|
||||
key: 'uninstall',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
// https://localhost:51015/client/router?path=shop&key=uninstall
|
||||
|
||||
Reference in New Issue
Block a user