From 182175254ed9b6c96202193713956c6f732393ea Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 28 Jan 2026 14:57:50 +0000 Subject: [PATCH] Clean up old SMS callback endpoints --- llm/client.go | 2 +- sync/routes.go | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/llm/client.go b/llm/client.go index 832b5be3..1bad4e63 100644 --- a/llm/client.go +++ b/llm/client.go @@ -67,7 +67,7 @@ func convertHistory(history []Message) genai.Message { The agent rarely asks questions, preferring to just answer direct queries. For complex or highly specific requests, the agent will need to defer to the mosquito abatement district. This will take some time because contacting the district may take a few hours to get a response. When the agent needs to contact the district, the agent should tell the customer they are reaching out to the district and to expect a delay. When conversations start to veer away from the agent's job they should contact a supervisor. - Transcript starts:`, + Transcript:\n`, ) for _, h := range history { if h.IsFromCustomer { diff --git a/sync/routes.go b/sync/routes.go index f980dcdb..645ecf70 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -54,19 +54,14 @@ func Router() chi.Router { r.Get("/qr-code/report/{code}", getQRCodeReport) r.Get("/signin", getSignin) r.Post("/signin", postSignin) - r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout)) r.Get("/signup", getSignup) r.Post("/signup", postSignup) - r.Get("/sms", getSMS) - r.Post("/sms", postSMS) - r.Get("/sms.php", getSMS) - r.Get("/sms/{org}", getSMS) - r.Post("/sms/{org}", postSMS) // Authenticated endpoints r.Route("/api", api.AddRoutes) r.Method("GET", "/cell/{cell}", auth.NewEnsureAuth(getCellDetails)) r.Method("GET", "/settings", auth.NewEnsureAuth(getSettings)) + r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout)) r.Method("GET", "/source/{globalid}", auth.NewEnsureAuth(getSource)) r.Method("GET", "/trap/{globalid}", auth.NewEnsureAuth(getTrap))