Hacker News new | comments | show | ask | jobs | submit login

It's just a different way of structuring.

api = new Api('http://my.cool.api')

api.get('/it')

api.post('/it')

// connect = rootUrl => method => endpoint

api = connect('http://my.cool.api')

get = api('GET')

post = api('POST')

get('/it')

post('/it')




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: