Slide 50
Slide 50 text
ࠓಈ͍ͨίʔυ
# it will respond to https://localhost:3000/api/user/fuga?foo=bar
proxy.get '/user/:id', ({id}, {foo}, req) ->
{id, foo}
# Return with promise
proxy.post '/post', ({}, body) ->
new Promise (done) ->
setTimeout ->
done {type: 'this is post:'+params.prop}
, 300