Skip to content

Instantly share code, notes, and snippets.

@gngeorgiev
Last active November 24, 2017 19:24
Show Gist options
  • Save gngeorgiev/f046a8dedf4d1295c2e16b5a535dca07 to your computer and use it in GitHub Desktop.
Save gngeorgiev/f046a8dedf4d1295c2e16b5a535dca07 to your computer and use it in GitHub Desktop.
sashido-parse-server-static-website-hosting.js
var express = require('express');
var cowsay = require('cowsay');
//initialize express.js instance
var app = express();
//this creates a GET endpoint for your application
app.get('/cowsay', (req, res) => {
var say = cowsay.say({
text : 'Custom npm mooodules and website hosting',
e : 'oO',
T : 'U '
});
res.send(say);
});
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment