mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
import * as Router from "@koa/router";
|
|
import { Photo } from "~entity/Photo";
|
|
import { User } from "~entity/User";
|
|
|
|
export const devRouter = new Router();
|
|
|
|
devRouter.get("/dev/clean", async (ctx) => {
|
|
await Photo.remove(await Photo.find());
|
|
await User.remove(await User.find());
|
|
ctx.body = { success: true };
|
|
});
|