mirror of
https://github.com/aculix/vector-drawable-nextjs.git
synced 2025-12-06 06:08:24 +00:00
fix async
This commit is contained in:
parent
23b96fbad4
commit
c6ac497af2
@ -1,6 +1,6 @@
|
|||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
|
|
||||||
module.exports = (req, res) => {
|
module.exports = async (req, res) => {
|
||||||
const { method, body, url } = req.body;
|
const { method, body, url } = req.body;
|
||||||
if (method == 'GET') {
|
if (method == 'GET') {
|
||||||
const { data } = await axios.get(url);
|
const { data } = await axios.get(url);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user