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