30 lines
479 B
TypeScript
30 lines
479 B
TypeScript
/**
|
|
* Interface of the server (auto-generated code)
|
|
*/
|
|
import {
|
|
HTTPRequestModel,
|
|
RESTConfig,
|
|
RESTRequestJson,
|
|
} from "../rest-tools";
|
|
|
|
export namespace ProxyResource {
|
|
export function getImageFromUrl({
|
|
restConfig,
|
|
queries,
|
|
}: {
|
|
restConfig: RESTConfig,
|
|
queries: {
|
|
url?: string,
|
|
},
|
|
}): Promise<object> {
|
|
return RESTRequestJson({
|
|
restModel: {
|
|
endPoint: "/proxy/",
|
|
requestType: HTTPRequestModel.GET,
|
|
},
|
|
restConfig,
|
|
queries,
|
|
});
|
|
};
|
|
}
|