This commit is contained in:
2025-01-06 10:44:04 +08:00
parent a97bb5f732
commit 87f4420896
5 changed files with 22 additions and 7 deletions

View File

@@ -11,6 +11,19 @@ createAuthRoute({
secret: config.tokenSecret,
});
app
.route({
path: 'auth',
key: 'admin',
id: 'auth-admin',
})
.define(async (ctx) => {
// ctx.body = 'admin';
const token = ctx.query?.token;
//
})
.addTo(app);
// app.importApp(adminApp);
// appendTo(app);

View File

@@ -12,7 +12,7 @@ app
.define(async (ctx) => {
const { uid } = ctx.state.tokenUser;
const uploadList = await MicroAppUploadModel.findAll({
where: { uid },
// where: { uid },
});
ctx.body = uploadList;
})

View File

@@ -29,6 +29,7 @@ export const getHTML = (opts: HTMLOptions) => {
font-size: 16px;
}
</style>
<script src="https://kevisual.xiongxiao.me/system/lib/app.js"></script>
</head>
<body>
@@ -80,6 +81,7 @@ export const getOneHTML = (opts: OneHTMLOptions) => {
font-size: 16px;
}
</style>
<script src="https://kevisual.xiongxiao.me/system/lib/app.js"></script>
</head>
<body>