0.1.2 • Published 11 years ago

routa v0.1.2

Weekly downloads
58
License
-
Repository
github
Last release
11 years ago

routa

First Experimental version. Stay tuned for examples and many many fixes and improvements

Usage:

APP.JS

var express = require('express');
var routa = require('routa'); var app = express();

var db = {}; // this can be any db connection

routa.createRoute(app,{ route: '/:ver/:cat/:func', func: 'func',
db:db/Pass along your db connection/, vars:{ anything: "any argument you want to add to the routa object"
} } );

routes/0.1/test.js

exports.test = function(req,res,next,routa) { //here is your db var db = routa.db; routa.send({success:true, query:req.query}); }

By default output is json. to output xml do ?format=xml

0.1.2

11 years ago

0.0.8

11 years ago

0.0.5

12 years ago

0.0.46

12 years ago

0.0.45

12 years ago

0.0.44

12 years ago

0.0.43

12 years ago

0.0.42

12 years ago

0.0.41

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago