mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Update auth-request.md
Change axios.get to axios.post
This commit is contained in:
parent
05b00151f9
commit
e3e28db031
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user