18 lines
351 B
JavaScript
18 lines
351 B
JavaScript
|
/*module.exports = function(app) {
|
||
|
|
||
|
var uid = require('uid2');
|
||
|
// Install a "/ping" route that returns "pong"
|
||
|
app.get('/login', function(req, res) {
|
||
|
var uid(64,function(){
|
||
|
|
||
|
});
|
||
|
var token = req.query.access_token;
|
||
|
if (token) {
|
||
|
return res.redirect('/');
|
||
|
}
|
||
|
else {
|
||
|
return res.redirect('/login');
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
*/
|