From 2c318664305fd2723586ad939e64f958d9d447ff Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 27 Jun 2020 11:43:43 +0200 Subject: update openapi spec with links and callback for search --- server/controllers/api/users/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/users') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index c8e9eaeaa..732a6faa3 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -205,7 +205,7 @@ async function createUser (req: express.Request, res: express.Response) { Hooks.runAction('action:api.user.created', { body, user, account, videoChannel }) - return res.json({ + return res.status(201).json({ user: { id: user.id, account: { -- cgit v1.2.3