mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2025-04-11 18:57:16 +08:00
25 lines
573 B
TypeScript
25 lines
573 B
TypeScript
import fs from 'fs-extra';
|
|
|
|
import Response from '@/lib/response/Response.ts';
|
|
import chat from "./chat.ts";
|
|
import images from "./images.ts";
|
|
import ping from "./ping.ts";
|
|
|
|
export default [
|
|
{
|
|
get: {
|
|
'/': async () => {
|
|
const content = await fs.readFile('public/welcome.html');
|
|
return new Response(content, {
|
|
type: 'html',
|
|
headers: {
|
|
Expires: '-1'
|
|
}
|
|
});
|
|
}
|
|
}
|
|
},
|
|
chat,
|
|
images,
|
|
ping
|
|
]; |