title: How to recreate endpoints in feathers?
body: <p>I have to recreate a REST API that exists in feathers. Our team is moving from Loopback3 to Feathers. However, there are lot of endpoints that Loopback creates automatically that I have to recreate in feathers. My main question is how to go about that. As far as I can see, there are two different ways of tackling the problem:</p>
  <ul>
  <li>creating services for endpoints</li>
  <li>creating middlewares for endpoints</li>
  </ul>
  <p>The first approach has the advantage that I can use all the nice features of feathers, especially hooks. However, sometimes the endpoint is just calling a CRUD method for another service. Creating a new service, which includes 4 more files, then seems like an overkill.</p>
  <p>On the other hand, creating middlewares have the problem that I have to implement hook functionality, such as authentication, myself. This is not what I want to to for 10+ individual endpoints as it would include a lot of code duplication.</p>
  <p>Which would be the best way to go about that task?</p>
  <p>Additional question: Maybe recreating the API is not what I should do in the first place? Would it be better to create the new back end <em>the feathers way</em> and replace to calls to old endpoints by the equivalent in the new system?</p>