app/controllers/shows.js
Function Shows
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Shows = function () {
if (geddy.config.private) {
this.before(requireAuth);
}
Function show
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.show = function (req, resp, params) {
var self = this;
var request = require('request');
var baseURL = "http://" + req.headers.host + '/';