moved Constants and Errorhandler from api to util

This commit is contained in:
xnacly
2021-09-03 21:29:17 +02:00
parent afff55cb59
commit 7db26b5952
11 changed files with 104 additions and 48 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { Template, Guild, Role, Snowflake, Config, User, Member } from "@fosscor
import { HTTPError } from "lambert-server";
import { GuildTemplateCreateSchema } from "../../../schema/Guild";
import { check } from "../../../util/instanceOf";
import { DiscordApiErrors } from "../../../util/Constants";
import { DiscordApiErrors } from "@fosscord/util";
router.get("/:code", async (req: Request, res: Response) => {
const { code } = req.params;