diff options
Diffstat (limited to 'src/api/routes/users/@me/channels.ts')
-rw-r--r-- | src/api/routes/users/@me/channels.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/routes/users/@me/channels.ts b/src/api/routes/users/@me/channels.ts index 04db4fe9..aaba7b70 100644 --- a/src/api/routes/users/@me/channels.ts +++ b/src/api/routes/users/@me/channels.ts @@ -16,14 +16,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Request, Response, Router } from "express"; +import { route } from "@spacebar/api"; import { - Recipient, - DmChannelDTO, Channel, DmChannelCreateSchema, + DmChannelDTO, + Recipient, } from "@spacebar/util"; -import { route } from "@spacebar/api"; +import { Request, Response, Router } from "express"; const router: Router = Router(); @@ -41,7 +41,7 @@ router.get("/", route({}), async (req: Request, res: Response) => { router.post( "/", - route({ body: "DmChannelCreateSchema" }), + route({ requestBody: "DmChannelCreateSchema" }), async (req: Request, res: Response) => { const body = req.body as DmChannelCreateSchema; res.json( |