Created
December 14, 2014 23:19
-
-
Save Oobert/00df76e652754fac7ad3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var routConfig = { | |
cache: { expiresIn: 5000 }, | |
handler: function (request, reply) { | |
return reply({ name: 'John' }); | |
} | |
cors: true | |
}; | |
server.route({ method: 'GET', path: '/somepath', config: routConfig }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment