You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/09/09 01:46:28 UTC

[GitHub] [apisix-dashboard] liuxiran commented on a change in pull request #451: feat(route): add publish and offline to route

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



##########
File path: src/pages/Route/service.ts
##########
@@ -50,6 +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' });

Review comment:
       done




----------------------------------------------------------------
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:
users@infra.apache.org