When I was developing with rails API and vue completely separated, it became too complicated and I decided to put vue in rails.

I want to solve

The rails guide described how to turn an existing rails into a rails API, but I would like to know how to return to API mode, which is the opposite.