peerigon / alamid

Framework for RESTful JavaScript web applications that run both on the server- and clientside.
http://www.alamidjs.com
MIT License
23 stars 3 forks source link

Implement server-side-routing via server.addRoute #117

Closed meaku closed 11 years ago

meaku commented 12 years ago

The middleware object is not the perfect solution, so we should be consistent with other frameworks like express/connect/page.js and the way our Client.class handles it.

server.addRoute("get", "/services/bla", handler1, handler2
sever.addRoute("*", "/services/user/*", [handler1, handler2]);
server.addRouter("create update", "/services/authentication", authHandler);
meaku commented 11 years ago

Done.

jhnns commented 11 years ago

:+1: