mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2025-04-29 15:59:58 +08:00
31 lines
708 B
TypeScript
31 lines
708 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 videos from './videos.ts';
|
|
import ping from "./ping.ts";
|
|
import token from './token.js';
|
|
import models from './models.ts';
|
|
|
|
export default [
|
|
{
|
|
get: {
|
|
'/': async () => {
|
|
const content = await fs.readFile('public/welcome.html');
|
|
return new Response(content, {
|
|
type: 'html',
|
|
headers: {
|
|
Expires: '-1'
|
|
}
|
|
});
|
|
}
|
|
}
|
|
},
|
|
chat,
|
|
images,
|
|
videos,
|
|
ping,
|
|
token,
|
|
models
|
|
]; |