server-butler
v0.1.5
Published
A picky, opinionated server framework
Downloads
3
Readme
Server Butler
Server Butler is a picky, opinionated web framework that only handles GET requests*
To use
Install with the command npm install server-butler
Pull into your server.js file with var butler = require('server-butler')
Also require ('http')
to setup your server
Set a route using butler.set(route, method, content)
Each argument should be a string.
route = the intended route, ie '/' or '/hello/world'
method = 'GET', that's the only thing that works right now!
content = either a string ie 'hello world' or a filename relative to ../public