Last active
November 24, 2017 19:24
-
-
Save gngeorgiev/f046a8dedf4d1295c2e16b5a535dca07 to your computer and use it in GitHub Desktop.
sashido-parse-server-static-website-hosting.js
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 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