UNPKG

@studyportals/sp-hs-misc

Version:

Miscellaneous code used in HouseStark's projects

34 lines 848 B
import * as superagent from "superagent"; /** * A basic implementation of the ISuperAgentRequestFactory interface. * * @deprecated Use @studyportals/mb-platform-http-requests */ class BaseSuperAgentRequestFactory { /** * Creates a GET request to the specified path. */ get(path) { return superagent.get(path); } /** * Creates a POST request to the specified path. */ post(path) { return superagent.post(path); } /** * Creates a PUT request to the specified path. */ put(path) { return superagent.put(path); } /** * Creates a DELETE request to the specified path. */ delete(path) { return superagent.delete(path); } } export { BaseSuperAgentRequestFactory }; //# sourceMappingURL=base-super-agent-request-factory.class.js.map