From cdfa0e024b99286476c431723be61adf48e83474 Mon Sep 17 00:00:00 2001 From: zDEFz Date: Mon, 2 Nov 2020 15:17:17 +0100 Subject: [PATCH] added info for custom resource Provider --- Custom request handler.md => Custom-request-handler.md | 4 ++++ 1 file changed, 4 insertions(+) rename Custom request handler.md => Custom-request-handler.md (93%) diff --git a/Custom request handler.md b/Custom-request-handler.md similarity index 93% rename from Custom request handler.md rename to Custom-request-handler.md index 47eee2f..11ce5cb 100644 --- a/Custom request handler.md +++ b/Custom-request-handler.md @@ -56,6 +56,10 @@ Once we pass these checks we will just create the desired note using [[Script AP Another common use case is that you want to just expose a file note - in such case you create label `customResourceProvider` (value is again path regex). +Note: The file that is supposed to be exposed needs to wear an "#customResourceProvider" and then it can be called from anywhere. +For example, your file is in custom/fonts, you call it via custom/fonts/myFont.woff +myFont.woff must wear the "#customRessourceProvider" tag. + ## Advanced concepts `api.req` and `api.res` are Express.js objects - you can always look into its [documentation](https://expressjs.com/en/api.html) for details.