mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-24 08:50:33 +01:00
13 lines
345 B
TypeScript
13 lines
345 B
TypeScript
import axios from "axios";
|
|
import {Axios} from "../config";
|
|
|
|
export default async function () {
|
|
let informations = {}
|
|
const {data: translations} = await axios.get(Axios.baseURL + 'translations')
|
|
translations.map((item: any) => {
|
|
const { code, fr } = item
|
|
informations = { ...informations, [code]: fr }
|
|
})
|
|
return informations
|
|
}
|