Update auth-request.md

Change axios.get to axios.post
This commit is contained in:
Saint Asky 2020-01-08 21:07:02 +08:00 committed by GitHub
parent 05b00151f9
commit e3e28db031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ To do so, you will have to request the `/articles` route in **POST**.
import axios from 'axios';
const {data} = await axios
.get('http://localhost:1337/articles', {
.post('http://localhost:1337/articles', {
data: {
title: 'my article'
content: 'my super article content'