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:
parent
d2d77ed002
commit
3b53b79fb2
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "unleash-frontend",
|
||||
"description": "unleash your features",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.0-alpha.2",
|
||||
"keywords": [
|
||||
"unleash",
|
||||
"feature toggle",
|
||||
@ -9,7 +9,8 @@
|
||||
"toggle"
|
||||
],
|
||||
"files": [
|
||||
"public"
|
||||
"dist",
|
||||
"index.js"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -30,7 +31,8 @@
|
||||
"lint": "eslint . --ext=js,jsx",
|
||||
"test": "echo 'no test'",
|
||||
"test:ci": "npm run test",
|
||||
"prepublish": "npm run build"
|
||||
"prepublish": "npm run build",
|
||||
"postinstall": "npm run build"
|
||||
},
|
||||
"main": "./index.js",
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess, headers } from './helper';
|
||||
|
||||
const URI = '/archive';
|
||||
const URI = '/api/archive';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(`${URI}/features`)
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess, headers } from './helper';
|
||||
|
||||
const URI = '/client/instances';
|
||||
const URI = '/api/client/instances';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI, { headers })
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess, headers } from './helper';
|
||||
|
||||
const URI = '/client/strategies';
|
||||
const URI = '/api/client/strategies';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI, { headers })
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { throwIfNotSuccess, headers } from './helper';
|
||||
|
||||
const URI = '/features';
|
||||
const URI_VALIDATE = '/features-validate';
|
||||
const URI = '/api/features';
|
||||
const URI_VALIDATE = '/api/features-validate';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI)
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess } from './helper';
|
||||
|
||||
const URI = '/events';
|
||||
const URI = '/api/api/events';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI)
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess } from './helper';
|
||||
|
||||
const URI = '/metrics';
|
||||
const URI = '/api/metrics';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI)
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { throwIfNotSuccess, headers } from './helper';
|
||||
|
||||
const URI = '/strategies';
|
||||
const URI = '/api/strategies';
|
||||
|
||||
function fetchAll () {
|
||||
return fetch(URI)
|
||||
|
Loading…
Reference in New Issue
Block a user