temp
This commit is contained in:
13
src/route.ts
13
src/route.ts
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user