You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area: endpointsIssues related to endpoints.enhancementNew feature or requestin triageIssues under investigation before priority assignment. Can be closed if pending info for too long.
Hey! I would like each request to Serverpod to include the application version installed on the device and, for example, if the application version is old, not return data or return some specific error. Is it possible to add custom middleware to all requests?
Proposal
Implement custom middleware
Use Case
I dont wanna check user app version in every single endpoint. Thats to much works
Alternatives
Manual check on every endpoint :(
Additional context
No response
How experienced are you with this library?
Intermediate - Familiar with the basics or have used it in a few projects
If I understand you correctly, you want this feature to be able to detect when old clients are sending requests to your server, and be able to "reject" or send a custom response in that case?
Does this existing issue already cover that case? #1711
Or are you looking for a more generalized solution?
Keeping versions in sync is super important but I would like to keep this issue open for more customs middlewares. Im sure that a lot of people need it.
Reacted by Alexander Sandor, Pascal Schmitt and Rinat
area: endpointsIssues related to endpoints.enhancementNew feature or requestin triageIssues under investigation before priority assignment. Can be closed if pending info for too long.
Activity
SandPod commentedon May 19, 2025
Hey @tananga 👋
We don't currently have a mechanism for this.
If I understand you correctly, you want this feature to be able to detect when old clients are sending requests to your server, and be able to "reject" or send a custom response in that case?
Does this existing issue already cover that case? #1711
Or are you looking for a more generalized solution?
tananga commentedon May 19, 2025
Keeping versions in sync is super important but I would like to keep this issue open for more customs middlewares. Im sure that a lot of people need it.