@lcap/asl
Version:
NetEase Application Specific Language
35 lines (33 loc) • 767 B
JavaScript
import { prePosIndex } from '../common/preprocess';
export default {
create: {
url: {
path: '/proxy/graph/api/v1/graph/view/element',
method: 'post',
},
config: {
preprocess: (info) => {
prePosIndex(info);
return info;
},
},
},
update: {
url: {
path: '/proxy/graph/api/v1/graph/view/element',
method: 'put',
},
config: {
preprocess: (info) => {
prePosIndex(info);
return info;
},
},
},
delete: {
url: {
path: '/proxy/graph/api/v1/graph/view/element',
method: 'delete',
},
},
};