Skip to content

Adding proxy - #4

Merged
swhume merged 1 commit into
mainfrom
feature/proxy
Sep 18, 2026
Merged

swhume merged 1 commit into
mainfrom
feature/proxy

Conversation

@DmitryMK

Copy link
Copy Markdown
Collaborator

No description provided.

Comment on lines +491 to +492
const fileName = `${endpoint
.replace(/.*\/(.+\/.+)/, '$1')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There won't be that many replacements, so this should not be a noticeable performance bottleneck.

req.url.replace(/^\//, ''),
cl
);
res.send(response && response.body ? response.body : response);
res.status(404).send('Not found');
} catch (error: any) {
console.log(
`Error when running a request for ${req.url}: ${error.message}`

@swhume swhume left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updates seem approapriate for the change

@swhume
swhume merged commit c305dfc into main Sep 18, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants