1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-01 20:09:23 +00:00
This commit is contained in:
SunWuyuan 2025-03-16 10:10:35 +08:00
parent 774cec6a5d
commit 7ba9963a6c
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

7
app.js
View File

@ -34,6 +34,13 @@ const { PrismaClient } = require("@prisma/client");
const prisma = new PrismaClient();
// 使用路由
app.get("/api/test", (req, res) => {
res.json({
status: true,
message: "成功",
time: new Date().getTime(),
});
});
app.use("/", homeworkRouter);
app.use("/users", usersRouter);