From 0c21559399bc5f81e9d38a5802de388682d2cc65 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Date: Sat, 23 Apr 2022 03:34:34 +0200 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15cc019306..19baacdf58 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Cal.com Public API (Enterprise Only) -This is the public REST api for cal.com. It exposes CRUD Endpoints of all our most important resources. It makes it easy for anyone to integrate with cal at the programming level. +This is the public REST api for cal.com. +It exposes CRUD Endpoints of all our most important resources. +And it makes it easy for anyone to integrate with Cal.com at the application programming level. ## Stack @@ -60,6 +62,11 @@ API Keys optionally may have expiry dates, if they are expired they won't work. In the future we might add support for header Bearer Auth if we need to or if our customers require it. +## Middlewares +We don't use the new NextJS 12 Beta Middlewares, mainly because they run on the edge, and are not able to call prisma from api endpoints. We use instead a very nifty library called next-api-middleware that let's us use a similar approach building our own middlewares and applying them as we see fit. + +* withMiddleware() requires some default middlewares (verifyApiKey, etc...) + ## Next.config.js ### Redirects