diff options
author | xnacly <matteogropp@protonmail.com> | 2021-09-03 21:29:17 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-09-03 21:29:17 +0200 |
commit | 7db26b595293e45ab0c9faa2f7e4d82173f71af3 (patch) | |
tree | 33c1c02467fa5ba796b4d2ba331482135c656cf6 /api/src/routes/channels | |
parent | added template for future routes (diff) | |
download | server-7db26b595293e45ab0c9faa2f7e4d82173f71af3.tar.xz |
moved Constants and Errorhandler from api to util
Diffstat (limited to 'api/src/routes/channels')
-rw-r--r-- | api/src/routes/channels/#channel_id/pins.ts | 2 | ||||
-rw-r--r-- | api/src/routes/channels/#channel_id/webhooks.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/channels/#channel_id/pins.ts b/api/src/routes/channels/#channel_id/pins.ts index fafb789f..33309c86 100644 --- a/api/src/routes/channels/#channel_id/pins.ts +++ b/api/src/routes/channels/#channel_id/pins.ts @@ -1,7 +1,7 @@ import { Channel, ChannelPinsUpdateEvent, Config, emitEvent, getPermission, Message, MessageUpdateEvent } from "@fosscord/util"; import { Router, Request, Response } from "express"; import { HTTPError } from "lambert-server"; -import { DiscordApiErrors } from "../../../util/Constants"; +import { DiscordApiErrors } from "@fosscord/util"; const router: Router = Router(); diff --git a/api/src/routes/channels/#channel_id/webhooks.ts b/api/src/routes/channels/#channel_id/webhooks.ts index d2a4b9a0..e4125879 100644 --- a/api/src/routes/channels/#channel_id/webhooks.ts +++ b/api/src/routes/channels/#channel_id/webhooks.ts @@ -3,7 +3,7 @@ import { check, Length } from "../../../util/instanceOf"; import { Channel, Config, getPermission, trimSpecial, Webhook } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { isTextChannel } from "./messages/index"; -import { DiscordApiErrors } from "../../../util/Constants"; +import { DiscordApiErrors } from "@fosscord/util"; const router: Router = Router(); // TODO: webhooks |