update resource router

internally, store http method as key