0.2.7 • Published 11 years ago

express-dynamic-router v0.2.7

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

express-dynamic-router

Build Status NPM version

Dynamic routing system for express.

author : Yuki Takei(MikeTOKYO)
email : yuki@miketokyo.com

##Overseas express-dynamic-router provide you the auto routing system for express.

You don't need to write routing codes written in express docs

You only have to write easy code like bellow

##Instalation

##Usage

express/app.js

If you change routes dir, You only have to add setRoutesDir(path-your-route-dir) on method chain

##Api Reference

register

Register all routes in your routes dir except for actions which are ignored.

setRoutesDir

Set path to your routes dir (First, dynamic-router browse express/routes, if you don't use this method.)

getRoutesDir

Get your routes dir string.

index

Set index action (accessible http://your-domain.com/)

applyOnly

Register only routes which are given arguments.

■usage

ignore

Set ignore actions which you not want to register.

■usage

##Runing tests

##License MIT

0.2.8

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago