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

Align Client.class/Server.class API #184

Open jhnns opened 11 years ago

jhnns commented 11 years ago

The Client.class and Server.class interface should be mostly the same. There are differences, but if a method with the same name is on both classes, it should work nearly the same.

For instance, it's ok that server.addRoute() takes a method array because it's a different situation. But you can call client.addRoute("bla", fn1, fn2, fn3) where at the server you need to do server.addRoute([methods], "bla", [fn1, fn2, fn3]).

jhnns commented 11 years ago

There are also missing tests for the Server.class and the use-method on the Client isn't tested as well.

meaku commented 11 years ago

Tests will come soon...