Proxy Request
Dùng để proxy các request từ Remix app đến các API của service khác.
Ví dụ
// app/routes/api.v1.files.$.tsx
import { proxyRequest } from '@xotiny/remix-utils';
const response = await proxyRequest(new URL(process.env.API_URL));
Dùng để proxy các request từ Remix app đến các API của service khác.
// app/routes/api.v1.files.$.tsx
import { proxyRequest } from '@xotiny/remix-utils';
const response = await proxyRequest(new URL(process.env.API_URL));