1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix /api path

This commit is contained in:
ivaosthu 2016-11-10 16:09:48 +01:00
parent d2d77ed002
commit 3b53b79fb2
8 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "unleash-frontend", "name": "unleash-frontend",
"description": "unleash your features", "description": "unleash your features",
"version": "1.0.0", "version": "1.0.0-alpha.2",
"keywords": [ "keywords": [
"unleash", "unleash",
"feature toggle", "feature toggle",
@ -9,7 +9,8 @@
"toggle" "toggle"
], ],
"files": [ "files": [
"public" "dist",
"index.js"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
@ -30,7 +31,8 @@
"lint": "eslint . --ext=js,jsx", "lint": "eslint . --ext=js,jsx",
"test": "echo 'no test'", "test": "echo 'no test'",
"test:ci": "npm run test", "test:ci": "npm run test",
"prepublish": "npm run build" "prepublish": "npm run build",
"postinstall": "npm run build"
}, },
"main": "./index.js", "main": "./index.js",
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from './helper';
const URI = '/archive'; const URI = '/api/archive';
function fetchAll () { function fetchAll () {
return fetch(`${URI}/features`) return fetch(`${URI}/features`)

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from './helper';
const URI = '/client/instances'; const URI = '/api/client/instances';
function fetchAll () { function fetchAll () {
return fetch(URI, { headers }) return fetch(URI, { headers })

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from './helper';
const URI = '/client/strategies'; const URI = '/api/client/strategies';
function fetchAll () { function fetchAll () {
return fetch(URI, { headers }) return fetch(URI, { headers })

View File

@ -1,7 +1,7 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from './helper';
const URI = '/features'; const URI = '/api/features';
const URI_VALIDATE = '/features-validate'; const URI_VALIDATE = '/api/features-validate';
function fetchAll () { function fetchAll () {
return fetch(URI) return fetch(URI)

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from './helper';
const URI = '/events'; const URI = '/api/api/events';
function fetchAll () { function fetchAll () {
return fetch(URI) return fetch(URI)

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from './helper';
const URI = '/metrics'; const URI = '/api/metrics';
function fetchAll () { function fetchAll () {
return fetch(URI) return fetch(URI)

View File

@ -1,6 +1,6 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from './helper';
const URI = '/strategies'; const URI = '/api/strategies';
function fetchAll () { function fetchAll () {
return fetch(URI) return fetch(URI)