rhtyd commented on a change in pull request #54: [WIP] Infrasummary SSL URL: https://github.com/apache/cloudstack-primate/pull/54#discussion_r353074736
########## File path: src/api/index.js ########## @@ -25,6 +25,17 @@ export function api (command, args = {}) { }) } +export function apiPostForm (command, data = {}) { Review comment: @RitchieVincent is there a way we can refactor the `api()` to do both get and post, for example refactor the `api` method to accept a `method` parameter that accepts GET by default, for example: ``` export function api (command, args = {}, method = 'GET') { ... snipped: refactor to send axios based request for any command/args/method ... ``` ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services