Example Models
The following examples can be found in the /api folder.
Database Model using Knex
The model at api/profile/profileModel.js provides all CRUD operations for the profile resource using a knex connection.
API Model using Axios
The model in api/dsService is an example of using a model to wrap the calls to an internally created API.
Last updated
Was this helpful?