API Route Definitions & Logic

Summary of API Design

Handles SMS messages and extracts gas levels.Links SMS to correct sensor and client.Manages gas readings and updates sensor statuses.Ensures client location updates propagate.Handles all logic previously managed in Supabase triggers.

This new structure centralizes the business logic within Next.js, making it easier to debug, test, and maintain while optimizing database interactions. 🚀

Last updated