feat: some add auth

This commit is contained in:
2024-10-02 00:22:54 +08:00
parent 6f0535e2ef
commit 8436b0462a
12 changed files with 203 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ app
.route({
path: 'chat-history',
key: 'list',
middleware: ['auth'],
})
.define(async (ctx) => {
const chatPrompt = await ChatHistory.findAll({

View File

@@ -6,6 +6,7 @@ app
.route({
path: 'chat-session',
key: 'list',
middleware: ['auth'],
})
.define(async (ctx) => {
const chatSession = await ChatSession.findAll({