-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature 157801302] remove comments and re-activate eslint where nece…
…ssary
- Loading branch information
Showing
13 changed files
with
204 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
/** | ||
* Module dependencies. | ||
*/ | ||
var mongoose = require('mongoose'), //eslint-disable-line | ||
async = require('async'), //eslint-disable-line | ||
_ = require('underscore'); //eslint-disable-line | ||
const mongoose = require('mongoose'), | ||
async = require('async'), | ||
_ = require('underscore'); | ||
|
||
|
||
// Redirect users to /#!/app (forcing Angular to reload the page) | ||
exports.play = function(req, res) { //eslint-disable-line | ||
exports.play = (req, res) => { | ||
if (Object.keys(req.query)[0] === 'custom') { | ||
res.redirect('/#!/app?custom'); | ||
} else { | ||
res.redirect('/#!/app'); | ||
} | ||
}; | ||
|
||
exports.render = function(req, res) { //eslint-disable-line | ||
exports.render = (req, res) => { | ||
res.render('index', { | ||
user: req.user ? JSON.stringify(req.user) : 'null' | ||
user: req.user ? JSON.stringify(req.user) : null | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.