0.2.0 • Published 6 years ago

@sebi2020/http_route v0.2.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
6 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

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago