Skip to content
Snippets Groups Projects
Commit 8d36bf51 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Merge remote-tracking branch 'origin/1.11.8'

parents 73328aac 28e3c999
No related branches found
No related tags found
1 merge request!2251.11.8
Pipeline #20983 failed
...@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ...@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## 1.11.8 = 2019-07-19
## Changed
- Remove /user route
## 1.11.7 - 2019-07-12 ## 1.11.7 - 2019-07-12
## Changed ## Changed
- EnrollmentProjection now returns empty values with 0 - EnrollmentProjection now returns empty values with 0
......
...@@ -70,6 +70,7 @@ userApp.get('/role', (req, res, next) => { ...@@ -70,6 +70,7 @@ userApp.get('/role', (req, res, next) => {
next(); next();
}, response('role')); }, response('role'));
/*
userApp.get('/', passport.authenticate('bearer', {session: false}), (req, res, next) => { userApp.get('/', passport.authenticate('bearer', {session: false}), (req, res, next) => {
User.find((err, users) => { User.find((err, users) => {
if(err) { if(err) {
...@@ -88,6 +89,7 @@ userApp.get('/', passport.authenticate('bearer', {session: false}), (req, res, n ...@@ -88,6 +89,7 @@ userApp.get('/', passport.authenticate('bearer', {session: false}), (req, res, n
next(); next();
}); });
}, response('users')); }, response('users'));
*/
userApp.get('/me', passport.authenticate('bearer', { session: false }), (req, res, next) => { userApp.get('/me', passport.authenticate('bearer', { session: false }), (req, res, next) => {
let user = req.user.toObject(); let user = req.user.toObject();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment