Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Express JS API Example
* Say hello API
* Try:
app.get('/say/hello', (req, res) => {
// Return success response
return res.status(200).json({"message":"Hello there... Welcome to mock server."});
/* [END `/say/hello` ] - must be added before `exports.api = ...` */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment