Skip to content

Does postgREST support request middleware? #3338

Answered by FelixZY
FelixZY asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, postgREST supports request interception:

Note that GET requests cause the database to be opened in a read only state, meaning it is not possible to perform writes (such as logging to a table) during such requests from this hook.


I find this solution to have some flaws:

  • Only one function may be defined as "middleware"
  • It is not possible to perform writes for GET requests

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FelixZY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant