You've already forked DataMate
feat: add download functionality for example operator and update Dock… (#188)
* feat: add download functionality for example operator and update Dockerfile * feat: enhance download response by exposing content disposition header * feat: update download function to accept filename parameter for example operator
This commit is contained in:
@@ -48,6 +48,11 @@ export function uploadOperatorChunkUsingPost(_, data: FormData, config?: any) {
|
||||
...config,
|
||||
});
|
||||
}
|
||||
|
||||
export function downloadExampleOperatorUsingGet(fileName: string) {
|
||||
return download("/api/operators/examples/download", null, fileName);
|
||||
}
|
||||
|
||||
// 发布算子
|
||||
export function publishOperatorUsingPost(operatorId: string | number) {
|
||||
return post(`/api/operators/${operatorId}/publish`);
|
||||
|
||||
Reference in New Issue
Block a user