1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Outbound gateway webhooks: template rendering and HTTP delivery.
//!
//! Exposes the catalog and the dispatch.
//!
//! With the following routes, (non gateway will be deprecated in Athena 4.x.x)
//!
//! - `ROUTE_GATEWAY_DATA`: Awaiting deprecation
//! - `ROUTE_GATEWAY_FETCH`: Latest
//! - `ROUTE_GATEWAY_UPDATE`: Latest
//! - `ROUTE_GATEWAY_QUERY`: Will get more narrow permissions and tighter restrictions to be possible to be exposed
//! - `ROUTE_GATEWAY_INSERT`: Latest
//! - `ROUTE_GATEWAY_DELETE`: Has gotten changes in how `resource_id` is used
//! - `ROUTE_REST_GET`: AWAITING DEPRECATION
//! - `ROUTE_REST_POST`: AWAITING DEPRECATION
//! - `ROUTE_REST_PATCH`: AWAITING DEPRECATION
//! - `ROUTE_REST_DELETE`: AWAITING DEPRECATION
//!
//! ## Deprecation of the `ROUTE_REST_*`
//! This was due to a design flaw i made early on, as it used to support PostgREST
//! Now that the gateway can stand on it's own and support is no longer needed and is being phased
//! out we can get rid of that too. Since it's also partially flawed because a `ROUTE_GATEWAY_FETCH` is actually ALWAYS one of the `ROUTE_REST_*`.
//!
//! This means that the object that represents the Gateway request should just inherit the type of request and this inefficiency would be resolved.
//!
//! WebRequest -> GatewayRequest -> WebRequest::RequestType
//!
//!
//! We borrow the trade from the WebRequest which is WebRequest::RequestType
pub use ;
pub use ;
pub const ROUTE_GATEWAY_DATA: &str = "gateway_data";
pub const ROUTE_GATEWAY_FETCH: &str = "gateway_fetch";
pub const ROUTE_GATEWAY_UPDATE: &str = "gateway_update";
pub const ROUTE_GATEWAY_QUERY: &str = "gateway_query";
pub const ROUTE_GATEWAY_INSERT: &str = "gateway_insert";
pub const ROUTE_GATEWAY_DELETE: &str = "gateway_delete";
pub const ROUTE_REST_GET: &str = "rest_get";
pub const ROUTE_REST_POST: &str = "rest_post";
pub const ROUTE_REST_PATCH: &str = "rest_patch";
pub const ROUTE_REST_DELETE: &str = "rest_delete";