Skip to content

Instantly share code, notes, and snippets.

@hungdev
Created October 30, 2024 04:25
Show Gist options
  • Save hungdev/783e63be2bbe2b04e07506cb48ec4ba0 to your computer and use it in GitHub Desktop.
Save hungdev/783e63be2bbe2b04e07506cb48ec4ba0 to your computer and use it in GitHub Desktop.
params in axios
const paramsMethod = (params: any) => ({
  get: { params },
  post: params,
  put: params,
  delete: { data: params },
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment