Commit b7dac945 authored by Jure's avatar Jure
Browse files

Merge branch 'rename_to_server' into 'master'

Update references to pubsweet-backend to point to pubsweet-server

See merge request !21
parents c5cb0cb9 8dfd4240
Pipeline #1056 failed with stage
in 60 minutes and 6 seconds
......@@ -122,7 +122,7 @@
"verbose": true,
"globals": {
"CONFIG": {
"pubsweet-backend": {
"pubsweet-server": {
"API_ENDPOINT": "http://localhost:3000/api"
}
},
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
const collectionUrl = (collection, suffix) => {
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
const token = require('../helpers/authtoken')
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
function fileUploadRequest () {
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
export const fragmentUrl = (collection, fragment) => {
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
const teamUrl = (team) => {
......
import { fetch } from '../helpers/Utils'
const API_ENDPOINT = CONFIG['pubsweet-backend'].API_ENDPOINT
const API_ENDPOINT = CONFIG['pubsweet-server'].API_ENDPOINT
import * as T from './types'
const token = require('../helpers/authtoken')
......
......@@ -3,7 +3,7 @@ import Root from './components/Root'
// Cross-platform global: https://www.contentful.com/blog/2017/01/17/the-global-object-in-javascript/
(function (global) {
global.VALIDATIONS = require('pubsweet-backend/src/models/validations')(CONFIG)
global.VALIDATIONS = require('pubsweet-server/src/models/validations')(CONFIG)
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
export { configureStore, Root }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment