aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-16 10:48:17 +0200
committerChocobozzz <me@florianbigard.com>2018-04-16 17:27:00 +0200
commit94ff4c2335ace54b36b2bca96f63226ee8f575b1 (patch)
tree60eaf4b370bdd165383231cf76cb918c19d36fc5 /server/controllers/api
parentf36fb3ecb114c8c274618bf9fefbe7a5a3d45f10 (diff)
downloadPeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.tar.gz
PeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.tar.zst
PeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.zip
Add auth documentation
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/users.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts
index 5e96d789e..abe6b3ff7 100644
--- a/server/controllers/api/users.ts
+++ b/server/controllers/api/users.ts
@@ -88,6 +88,8 @@ usersRouter.get('/',
88) 88)
89 89
90usersRouter.get('/:id', 90usersRouter.get('/:id',
91 authenticate,
92 ensureUserHasRight(UserRight.MANAGE_USERS),
91 asyncMiddleware(usersGetValidator), 93 asyncMiddleware(usersGetValidator),
92 getUser 94 getUser
93) 95)