diff --git a/services/api/src/main.rs b/services/api/src/main.rs index 7779087..a2b19d3 100644 --- a/services/api/src/main.rs +++ b/services/api/src/main.rs @@ -161,13 +161,23 @@ async fn root() -> &'static str { "Are you an idiot? Did you forget to look at the docs?" } -// k8s +#[derive(Serialize)] +struct HealthResponse { + message: String, + brought_to_you_by: String, +} + async fn health() -> &'static str { "Yeah" } async fn health2() -> Response { - (StatusCode::OK, "yea").into_response() + let res = HealthResponse { + message: "Yeah".to_string(), + brought_to_you_by: get_random_ad(), + }; + + (StatusCode::OK, Json(res)).into_response() } #[derive(Serialize)] struct InsertItemResponse { diff --git a/services/web/app/components/pricing.tsx b/services/web/app/components/pricing.tsx index e2b8ed9..45cd5a2 100644 --- a/services/web/app/components/pricing.tsx +++ b/services/web/app/components/pricing.tsx @@ -66,6 +66,7 @@ const tiers = [ "Indexes available as a paid addon ($100/index/mo)", "Employee pinky promise to not look at customer data to retaliate over a personal grievance", "Bring Your Own API Key™ - use your own generated key to access our API", + "No Ads in responses", "Backups", ], featured: true, diff --git a/services/web/app/routes/docs._index.tsx b/services/web/app/routes/docs._index.tsx index e8afe57..818dc29 100644 --- a/services/web/app/routes/docs._index.tsx +++ b/services/web/app/routes/docs._index.tsx @@ -5,7 +5,7 @@ const faqs = [ color: "bg-emerald-500", endpoint: "/u-up", text:

Will give you a response of:

, - response: `"yea"`, + response: `{"message": "Yeah", "brought_to_you_by": "Pantene: Treat your hair with Pantene's new nourishing shampoo."}`, }, { id: 2, @@ -80,7 +80,8 @@ export default function Example() {

Enterprise customers can bring their own API keys! Simply - insert any items with whatever key that you want prefixed with enterprise- + insert any items with whatever key that you want prefixed with{" "} + enterprise-