From b521f5c31d93c3b72571b6a1d58870b4d89545dc Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 30 May 2024 13:57:31 +0530 Subject: [PATCH] docs: add note about precedence --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0083e33..f97ed8a 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,8 @@ Catch-all routes are also supported. Refer [Next.js documentation](https://nextj Here `Request` and `Response` are Deno's built-in request and response objects - documented [here](https://docs.deno.com/deploy/api/runtime-request) and [here](https://docs.deno.com/deploy/api/runtime-response). +Also note that the API routes will take precedence over static files. It is recommended to specify non-conflicting URL roots for API and static routes. + ## Contributing This project is a work in progress and is not yet ready for production use. It is meant as an internal tool for [Global Brain Corporation](https://globalbrains.com/en), but we welcome external contributions and feedback. Please feel free to open an issue or a pull request. This project follows Semantic Versioning and the Conventional Commits guidelines.