|
|
|
@ -19,6 +19,7 @@ function authenticatedRoutes() {
|
|
|
|
|
setupApiRoute(router, 'delete', '/', [...middlewares, middleware.checkRequired.bind(null, ['uids'])], controllers.write.users.deleteMany);
|
|
|
|
|
|
|
|
|
|
setupApiRoute(router, 'head', '/:uid', [middleware.assert.user], controllers.write.users.exists);
|
|
|
|
|
setupApiRoute(router, 'get', '/:uid', [...middlewares, middleware.assert.user], controllers.write.users.get);
|
|
|
|
|
setupApiRoute(router, 'put', '/:uid', [...middlewares, middleware.assert.user], controllers.write.users.update);
|
|
|
|
|
setupApiRoute(router, 'delete', '/:uid', [...middlewares, middleware.assert.user], controllers.write.users.delete);
|
|
|
|
|
setupApiRoute(router, 'delete', '/:uid/content', [...middlewares, middleware.assert.user], controllers.write.users.deleteContent);
|
|
|
|
|