lib/wei-backend/main.rb in wei-backend-0.1.0 vs lib/wei-backend/main.rb in wei-backend-0.1.1
- old
+ new
@@ -14,14 +14,14 @@
token_proc = proc {
WeiBackend::MessageDispatcher.token
}
-get '/', :access_token => token_proc do
+get '/weixin', :access_token => token_proc do
params[:echostr]
end
-post '/', :access_token => token_proc do
+post '/weixin', :access_token => token_proc do
request.body.rewind
weixin_params = WeiBackend::Utils.parse_params request.body.read
handler = WeiBackend::MessageDispatcher.new
results = handler.on weixin_params[:MsgType], weixin_params