0.5.0 • Published 9 years ago

miniservice v0.5.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

##MiniService

After being stuck with express.js and all of its annoying middleware, I decided to make something super small for building out little apis. The end goal is to at least have some built in authentication stuff and database integration.

###Creating your app

var MiniService = require('./MiniService');
var App = new MiniService();

Making a route is super easy:

App.route('test',function(params){
	console.log(params.get,params.post)
	return {user: 'test', email: 'wow'}
})

params is an object that contains get and post varaibles.

###Serve your app

App.serve(1337)