juzhiyuan commented on a change in pull request #451:
URL: https://github.com/apache/apisix-dashboard/pull/451#discussion_r485298486



##########
File path: src/pages/Route/service.ts
##########
@@ -50,8 +50,8 @@ export const fetchList = ({ current = 1, pageSize = 10 }, 
search: string) => {
 };
 
 export const remove = (rid: number) => request(`/routes/${rid}`, { method: 
'DELETE' });
-export const offline = (rid: number) => request(`/offlineroutes/${rid}`, { 
method: 'PUT' });
-export const publish = (rid: number) => request(`/publishroutes/${rid}`, { 
method: 'PUT' });
+export const offline = (rid: number) => request(`/routes/${rid}/offline`, { 
method: 'PUT' });
+export const publish = (rid: number) => request(`/routes/${rid}/publish`, { 
method: 'PUT' });

Review comment:
       LGTM, and it seems to need a new PR on manager api.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to