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