Last active
November 10, 2021 09:33
-
-
Save astrotars/7a6d882e2dfc257777f3297ba3b4c7ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import User from '../controllers/user'; | |
module.exports = api => { | |
api.route('/users').get(User.list); | |
api.route('/users/:userId').get(User.get); | |
api.route('/users).post(User.post); | |
api.route('/users/:userId').put(User.put); | |
api.route('/users/:userId').delete(User.delete); | |
}; |
Seriously, this is that old, this should have been fixed long ago.
api.route('/users).post(User.post);
should be:
api.route('/users').post(User.post);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yo this is missing a closing apostrophe -_-