19 lines
424 B
TypeScript
Raw Normal View History

2021-06-21 16:32:10 +08:00
import { Context } from "koa";
import FileService from "../service/FileService";
const router = {};
router["GET /file/query"] = async function (ctx: Context) {
ctx.body = FileService.readPath(ctx.query.path as string);
};
router["PUT /plan"] = async function (ctx: Context) {
ctx.body = "asdfasdf";
};
router["DELETE /plan/:planId"] = async function (ctx: Context) {
ctx.body = "";
}
export default router;