diff --git a/lib/server/middlewareButNotReally/index.ts b/lib/server/middlewareButNotReally/index.ts new file mode 100644 index 0000000..02c11f0 --- /dev/null +++ b/lib/server/middlewareButNotReally/index.ts @@ -0,0 +1,6 @@ +import isIdNan from "./isIdNan"; +import isAdmin from "./isAdmin"; +import isLoggedIn from "./isLoggedIn"; +import storyCheck from "./storyCheck"; +import * as storyPrivileges from "./storyPrivileges"; +export { isIdNan, isAdmin, isLoggedIn, storyCheck, storyPrivileges }; diff --git a/server/api/review/[id]/index.get.ts b/server/api/review/[id]/index.get.ts index 3c1db74..322fcd5 100644 --- a/server/api/review/[id]/index.get.ts +++ b/server/api/review/[id]/index.get.ts @@ -1,6 +1,6 @@ -import { messages } from "~/lib/server/constants"; -import { Review } from "~/models/stories/review"; -import isIdNan from "~/lib/server/middlewareButNotReally/isIdNan"; +import { messages } from "@server/constants"; +import { Review } from "@models/stories/review"; +import isIdNan from "@server/middlewareButNotReally/isIdNan"; export default eventHandler(async (ev) => { const revid = isIdNan(ev);