Skip to content

Instantly share code, notes, and snippets.

@spikebrehm
Last active December 11, 2015 12:18
Show Gist options
  • Save spikebrehm/4599633 to your computer and use it in GitHub Desktop.
Save spikebrehm/4599633 to your computer and use it in GitHub Desktop.
Code for blog post: "We've launched our first Node.js app to production!"
module.exports =
index: (params, callback) ->
fetchSpec =
collection: {collection: 'Users', params: params}
@app.fetcher.fetch fetchSpec, (err, results) ->
callback(err, 'users_index_view', results)
show: (params, callback) ->
fetchSpec =
model: {model: 'User', params: params}
@app.fetcher.fetch fetchSpec, (err, results) ->
callback(err, 'users_show_view', results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment