0.2.0 • Published 7 years ago

@sebi2020/http_route v0.2.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
7 years ago

http_route

Build Status A nodejs module for routing of pretty urls.

Use

http_route.addRoute("GET", "/my/url/:param1", callback_function);

The callback function should have the following signature:

function callback_function(req, res, route)

routecontains the parameters For more information look at the Documentation

In your createServer callback, call http_route.route(req,res,pageNotFoundHandler)

The pageNotFoundHandler function should have the following signature:

function pageNotFoundHandler(req, res)
0.2.0

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago