Try to declare static (non-RESTful) endpoints first.