Skip to content
Snippets Groups Projects
Commit f3131a67 authored by esikkala's avatar esikkala
Browse files

Update api url

parent d3d0ad9e
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ import {
const apiUrl = (process.env.NODE_ENV === 'development')
? 'http://localhost:3001/api/'
: `${location.hostname}/api/`;
: `http://${location.hostname}/api/`;
const getManuscripts = (action$, state$) => action$.pipe(
ofType(FETCH_MANUSCRIPTS),
......@@ -55,7 +55,6 @@ const getFacet = (action$, state$) => action$.pipe(
ofType(FETCH_FACET),
withLatestFrom(state$),
mergeMap(([action, state]) => {
console.log(location.hostname)
let requestUrl = '';
let params = {};
let filters = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment