summary refs log tree commit diff
path: root/api/src/routes/guilds/templates
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-09-03 21:29:17 +0200
committerxnacly <matteogropp@protonmail.com>2021-09-03 21:29:17 +0200
commit879587d62b8606ab3d57e4a7b0c484f75b64cbda (patch)
tree5f812a767e46bb4c3a57cf08fd7ff0bf26746b5b /api/src/routes/guilds/templates
parentadded template for future routes (diff)
downloadserver-879587d62b8606ab3d57e4a7b0c484f75b64cbda.tar.xz
moved Constants and Errorhandler from api to util
Diffstat (limited to 'api/src/routes/guilds/templates')
-rw-r--r--api/src/routes/guilds/templates/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/templates/index.ts b/api/src/routes/guilds/templates/index.ts

index 3a619278..58201f65 100644 --- a/api/src/routes/guilds/templates/index.ts +++ b/api/src/routes/guilds/templates/index.ts
@@ -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;