Skip to content
Snippets Groups Projects

Feature/contact page data

Merged John Kidd Jr requested to merge feature/contact-page-data into develop
4 files
+ 38
20
Compare changes
  • Side-by-side
  • Inline
Files
4
import get from 'axios';
export default function getContactPage() {
get(`${process.env.VUE_APP_API_ENDPOINT}/api/contact`)
.then((response) => response)
.catch((error) => console.log(error));
}
const getContactPage = async () => {
try {
const { data: response } = await get(`${process.env.VUE_APP_API_ENDPOINT}/api/contact`);
return response;
} catch (error) {
return error;
}
};
export default getContactPage;
Loading