diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-27 11:43:43 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-27 13:12:34 +0200 |
commit | 2c318664305fd2723586ad939e64f958d9d447ff (patch) | |
tree | 4b7f4b505e5d1a8081d1048de7ccde8e54793ee0 /server/controllers | |
parent | cc0e0d32ea7f65475630bcdee1f1fa8a8c71eb05 (diff) | |
download | PeerTube-2c318664305fd2723586ad939e64f958d9d447ff.tar.gz PeerTube-2c318664305fd2723586ad939e64f958d9d447ff.tar.zst PeerTube-2c318664305fd2723586ad939e64f958d9d447ff.zip |
update openapi spec with links and callback for search
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
205 | 205 | ||
206 | Hooks.runAction('action:api.user.created', { body, user, account, videoChannel }) | 206 | Hooks.runAction('action:api.user.created', { body, user, account, videoChannel }) |
207 | 207 | ||
208 | return res.json({ | 208 | return res.status(201).json({ |
209 | user: { | 209 | user: { |
210 | id: user.id, | 210 | id: user.id, |
211 | account: { | 211 | account: { |