UNPKG

create-bar-project

Version:

This module helps create a base for web application projects.

17 lines (11 loc) 498 B
# API (_none apollo projects_) The Api file is a simple file that uses axios to create a new axios object that is exported and can be used to create http requests like this: ```javascript API.post('/auth/login', loginData); ``` You will usally use the API from the logic folders so the division of code would be like this: UI => Logic => API. You can add middlewares to the api like those that already exist, one to add a token and one to extracte the response data and error.