Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelrds committed May 16, 2017
2 parents 5b88b4f + a3f6c22 commit 2c283ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/hero_routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function (app) {
});
});

apiRoutes.get('/search/:params', passport.authenticate('jwt', { session: false }), function (req, res) {
apiRoutes.get('/search', passport.authenticate('jwt', { session: false }), function (req, res) {
let name = req.query.name;
Hero.find({ name: {$regex: name, $options: 'i'}}, function (err, heroes) {
if (err) {
Expand Down

0 comments on commit 2c283ee

Please sign in to comment.