aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users/index.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-06-27 11:43:43 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-06-27 13:12:34 +0200
commit2c318664305fd2723586ad939e64f958d9d447ff (patch)
tree4b7f4b505e5d1a8081d1048de7ccde8e54793ee0 /server/controllers/api/users/index.ts
parentcc0e0d32ea7f65475630bcdee1f1fa8a8c71eb05 (diff)
downloadPeerTube-2c318664305fd2723586ad939e64f958d9d447ff.tar.gz
PeerTube-2c318664305fd2723586ad939e64f958d9d447ff.tar.zst
PeerTube-2c318664305fd2723586ad939e64f958d9d447ff.zip
update openapi spec with links and callback for search
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r--server/controllers/api/users/index.ts2
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: {