think/packages/domains/lib/api/template.js

54 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
exports.TemplateApiDefinition = void 0;
exports.TemplateApiDefinition = {
/**
*
*/
public: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'public',
client: function () { return '/template/public'; }
},
/**
*
*/
own: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'own',
client: function () { return '/template/own'; }
},
/**
*
*/
add: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'add',
client: function () { return '/template/add'; }
},
/**
*
*/
updateById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'update/:id',
client: function (id) { return "/template/update/".concat(id); }
},
/**
*
*/
getDetailById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'detail/:id',
client: function (id) { return "/template/detail/".concat(id); }
},
/**
*
*/
deleteById: {
2022-05-23 08:20:56 +00:00
method: 'delete',
2022-05-23 05:05:59 +00:00
server: 'delete/:id',
client: function (id) { return "/template/delete/".concat(id); }
}
};