refract: cleanup server call constants

This commit is contained in:
cv
2021-05-16 22:41:43 +02:00
parent b42710a972
commit 8162c622a6
8 changed files with 46 additions and 60 deletions
+1 -4
View File
@@ -1,8 +1,5 @@
import axios from 'axios';
import { serverURL } from './apiConstants';
export const eventNamespace = 'event';
export const eventURL = serverURL + eventNamespace;
import { eventURL } from './apiConstants';
export const fetchEvent = async () => {
const res = await axios.get(eventURL);