Skip to content

pipopotamasu/axios-on-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axios-on-rails

This provide axios with csrf token for Ruby on Rails project.

How to install

npm

npm install --save axios-on-rails

yarn

yarn add axios-on-rails

Usage

This enable you to send post/put/patch/delete requests without setting csrf token.

import axios from 'axios-on-rails'

axios.post(url).then((response) => {
  console.log(response.data)
})

About

axios for Ruby on Rails project

Resources

License

Stars

Watchers

Forks

Packages

No packages published