完成deno后端测试用的接口

This commit is contained in:
编码猿
2025-09-16 23:40:58 +08:00
parent c156637f03
commit 61c84b0842
12 changed files with 1576 additions and 9 deletions

12
back-end/vite.config.ts Normal file
View File

@@ -0,0 +1,12 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
server: {
port: 3000, // 设置Vite开发服务器端口
strictPort: true, // 严格使用指定端口,如果被占用则报错
// 可选:允许跨域请求
cors: true,
},
plugins: [fresh()],
});