retrofit-axios-ts
Version:
A declarative and axios based retrofit implementation for JavaScript and TypeScript.
16 lines (15 loc) • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.POST = void 0;
const registerMethod_1 = require("../helpers/registerMethod");
/**
* POST decorator.
* @param url
* @param options
* @sample @POST("/users")
* @constructor
*/
const POST = (url, options) => {
return (0, registerMethod_1.registerMethod)("POST", url, options);
};
exports.POST = POST;