Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix url and api conflict #3672

Merged
merged 3 commits into from
May 27, 2021
Merged

Conversation

acured
Copy link
Contributor

@acured acured commented May 26, 2021

No description provided.

@@ -6,7 +6,7 @@ const METRIC_GROUP_UPDATE_SIZE = 20;

const prefix = getPrefix();

const MANAGER_IP = prefix === undefined ? '/api/v1/nni' : `${prefix}`;
const MANAGER_IP = prefix === undefined ? '/api/v1/nni' : `api/v1/nni${prefix}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix should be before /api?

Copy link
Contributor

@Lijiaoa Lijiaoa May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But when rest api is prefix/api/v1/nni, it still is conflict with ui router. because they are in the same directory prefix/xxx .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
test with ui router ip:port/api/oview and rest api ip:port/api/v1/nni/trial-jobs, webportal is normal!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @liuzhe-lz , do you have any concern?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it work first.

@ultmaster ultmaster merged commit 964d9a9 into microsoft:master May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants