summary refs log tree commit diff
path: root/api/src/routes/channels
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-01 20:08:56 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-01 20:08:56 +0200
commitbd9a6b38f227e5ef08b78a98a9d0a3eaf1f32c9c (patch)
tree6943933d61009e423db1613f669732ccafa9724e /api/src/routes/channels
parent:sparkles: new user flags (diff)
parentMerge pull request #404 from Thesourtimes/master (diff)
downloadserver-bd9a6b38f227e5ef08b78a98a9d0a3eaf1f32c9c.tar.xz
Merge branch 'master' of http://github.com/fosscord/fosscord-server
Diffstat (limited to 'api/src/routes/channels')
-rw-r--r--api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts26
1 files changed, 24 insertions, 2 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts

index 6753e832..de0c01f1 100644 --- a/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/api/src/routes/channels/#channel_id/messages/#message_id/crosspost.ts
@@ -1,8 +1,30 @@ import { Router, Response, Request } from "express"; +import { route } from "@fosscord/api"; const router = Router(); -// TODO: -// router.post("/", (req: Request, res: Response) => {}); +router.post("/", route({ permission: "MANAGE_MESSAGES" }), (req: Request, res: Response) => { + // TODO: + res.json({ + id: "", + type: 0, + content: "", + channel_id: "", + author: {id: "", + username: "", + avatar: "", + discriminator: "", public_flags: 64}, + attachments: [], + embeds: [], + mentions: [], + mention_roles: [], + pinned: false, + mention_everyone: false, + tts: false, + timestamp: "", + edited_timestamp: null, + flags: 1, components: []}).status(200); +}); export default router; +