When building an application, you’ll generally need to implement custom logic to process data and perform other operations before responding to client requests. In LoopBack, there are three ways to do this:
- Adding logic to models - adding remote methods, remote hooks and operation hooks.
- Defining boot scripts - writing scripts (in the
/server/bootdirectory) that run when the application starts.
- Defining middleware - adding custom middleware to the application .