refactor(*): use more sane path aliases
This commit is contained in:
parent
ffaeee89ab
commit
60e564781d
6
lib/server/middlewareButNotReally/index.ts
Normal file
6
lib/server/middlewareButNotReally/index.ts
Normal file
@ -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 };
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user