Unlike Rails, Lotus does not consider Rails resource generator is a good pattern for Rails is so tied to CRUD. Thus Lotus introduces the single action routes generator which always uses GET method for that, users then required to change it to PATCH, PUT, DELETE on application endpoint design. This could be annoying if users know exactly that they want a non-GET route for the REST resource. So I’d like to propose an idea that would help save time for users. By picking up the endpoint action naming convention, Lotus would use the right method verb to generate routes.
# generate a new action posts#update # the verb will automatically changed to PATCH # generate a new action posts#create # the verb will be POST # generate a new action posts#destroy # it will be DELETE
Let me know your thought