1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- create: {
- requestBody: ["name", "videopath", "create_time"],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: ["name", "videopath", "create_time"],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- name: "name",
- videopath: "videopath",
- create_time: "create_time",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- };
|