feat: add raw string option and wrap option for http trigger (#5467)

* add new column

* handled worskpaced route

* update .sqlx

* update: rename migration file, rewrite query for checking existing route path key, add copy button url for each route trigger

* update .sqlx

* update sql query

* update .sqlx

* fix: prevent precedence on query

* nits

* update .sqlx

* update query

* Update http_triggers.rs

* nits

* handling two new option in http route 'wrap_body' and 'raw_string'

* update sqlx and add wrap_body and raw_string to http route

* fix: undefined route path

* nits: remove unnecessay ref as type implement copy

* nits

* fix: undefined protection

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
This commit is contained in:
dieriba
2025-03-13 20:39:54 +00:00
committed by GitHub
co-authored by HugoCasa
parent 5694a3adf5
commit df4b6db0d4
21 changed files with 377 additions and 205 deletions
@@ -554,7 +554,9 @@ pub(crate) async fn tarball_workspace(
requires_auth,
http_method AS "http_method: _",
static_asset_config AS "static_asset_config: _",
is_static_website
is_static_website,
wrap_body,
raw_string
FROM http_trigger
WHERE workspace_id = $1
"#,