-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Building Production-Grade Web Applications with Supabase
By :
This is one of the most unknown and underrated features that Supabase provides. The ability to add an API middleware will allow you to control the actual API request before it hits – for example, by implementing rate limiting. So, at its core, you have fine-grained control over API calls.
This consists of two parts:
Let’s say our ticket system has its own API for external developers to interact with tickets. For example, we want to allow developers to access tickets of a tenant at something like /api/tenant_id/tickets. Certainly, you can just add Route Handlers in the project and implement such an API with the usual code logic. But you can also use the existing PostgREST service to do that. This means there are no additional roundtrips on your server, and you don’t...