mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-07-01 20:09:23 +00:00
1
This commit is contained in:
parent
774cec6a5d
commit
7ba9963a6c
7
app.js
7
app.js
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user