Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show images on cluck dashboard via proxying images through cluck server #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MeechaPooch
Copy link
Member

also, someones gotta change '20 Beaverton TC' to '20 To Beaverton TC' in trimet.ts to get the beaverton trimet working again. they changed the short sign for some reason :)

@@ -29,6 +29,45 @@ router.get('/dash/image', async (req, res, next) => {
next(e)
}
})
router.get('/dash/imageproxy', async (req, res, next) => {
Copy link
Member

Choose a reason for hiding this comment

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

Why not return the image blob from /dash/image directly? It already has the image url and it also lets you avoid making user-specified fetch requests server-side

Copy link
Member Author

Choose a reason for hiding this comment

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

🤯 Great idea. What if you or the app sw managers gave that task to a new sw person so they can learn how cluck works for when you are gone?

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.

2 participants