axios-best-practices.mdc 348 B

12345678
  1. ---
  2. description: Best practices for Axios HTTP requests
  3. globs: *.ts,*.vue
  4. alwaysApply: false
  5. ---
  6. - Refer to `src/api/admin/audit.ts` as a template to make an API call with the same effect
  7. - The API method must be called using the synchronous syntax await, and then the result is deconstructed
  8. - All axios call logic needs to be placed in `src/api`