Files
karusic/front/src/back-api/api/proxy-resource.ts
2025-09-27 16:50:00 +02:00

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,
});
};
}