mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
08014cab88
The RFC: https://docs.google.com/document/d/1NB9fA6J8_dKtWknJkfTiqN5qWhPVDfYVOKFK25gYE7Y/edit The JIRA: https://hasurahq.atlassian.net/browse/V3ENGINE-234 <!-- The PR description should answer 2 (maybe 3) important questions: --> ### What <!-- What is this PR trying to accomplish (and why, if it's not obvious)? --> <!-- Consider: do we need to add a changelog entry? --> This PR adds a new middleware to the `/graphql` endpoint handler. This new middleware will be used to handle the pre-execution plugins. ### How <!-- How is it trying to accomplish it (what are the implementation steps)? --> We are doing something similar to https://github.com/tokio-rs/axum/blob/axum-v0.6.20/examples/consume-body-in-extractor-or-middleware/src/main.rs V3_GIT_ORIGIN_REV_ID: a7e0a7a252efd1f266b3e90df23a8307a9b35fc7
18 lines
298 B
JSON
18 lines
298 B
JSON
[
|
|
{
|
|
"version": "v1",
|
|
"definition": {
|
|
"name": "example",
|
|
"url": "http://localhost:5000/allow_list",
|
|
"request": {
|
|
"headers": false,
|
|
"session": true,
|
|
"rawRequest": {
|
|
"query": true,
|
|
"variables": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|