0.0.1 • Published 6 years ago

axios-on-rails v0.0.1

Weekly downloads
175
License
MIT
Repository
github
Last release
6 years ago

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)
})