We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add resources instances to the app.
The text was updated successfully, but these errors were encountered:
# ./app.coffee _ = require 'lodash' app = require 'express' jest = require 'jest' includeAll = require 'include-all' app.set 'api roots', ['/api/v1/', 'api/v2'] app.api = new jest.Api app.get('api roots')[0], app app.resources = includeAll dirname: "#{__dirname}/resources" filter: /(.+Resource).js$/ _.each resources, (resource, name) -> app.resources[name] = new resource(app)
#./resources/UserResource.coffee jest = require 'jest' modue.exports = (app) -> return jest.Resource.extend init: () -> @_super app.models.UserModel0 # ... blah
Sorry, something went wrong.
Merge pull request #1 from jdalton/ld
2dc25c2
Make a switch
No branches or pull requests
add resources instances to the app.
The text was updated successfully, but these errors were encountered: