add install base

This commit is contained in:
2025-05-17 03:32:38 +08:00
parent 717e434ce0
commit 035ddc248c
28 changed files with 667 additions and 260 deletions

View File

@@ -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;

View File

@@ -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);

View File

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