Skip to content

Commit

Permalink
Fixed issue where adding .json to individual model URL would fail
Browse files Browse the repository at this point in the history
  • Loading branch information
bdickason committed Mar 12, 2013
1 parent cbf3828 commit 6331473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodejs/app.coffee
Expand Up @@ -65,6 +65,8 @@ app.get '/models/:id', (req, res) ->
res.redirect '/login'
else
# Display a list of user's models
if isJson req.url
req.params.id = req.params.id.substring 0, req.params.id.length-5

models.getModel req.params.id, req.session.oauth_access_token, req.session.oauth_access_token_secret, (callback) ->
if isJson req.url
Expand Down
3 changes: 3 additions & 0 deletions nodejs/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6331473

Please sign in to comment.