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);
|
||||
|
||||
Reference in New Issue
Block a user