frontend/pages/api/fetch.ts

6 lines
142 B
TypeScript
Raw Normal View History

2022-08-26 23:44:40 +03:00
import axios from 'axios'
import {host} from './consts'
export const get = async (url: string) => {
return (await axios.get(url)).data
}