From cb2de2ad304b803a3abfcaeb7dc63aa60fba5059 Mon Sep 17 00:00:00 2001 From: stffabi Date: Tue, 12 Apr 2022 14:35:09 +0200 Subject: [PATCH] [v2, docs] Add experimental badge for assets handler and fix type definitions (#1328) --- website/docs/reference/options.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index af3f9aa5c..4ad598b21 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -218,7 +218,7 @@ Indicates that the window should stay above other windows when losing focus. Name: Assets -Type: \*embed.FS +Type: embed.FS The frontend assets to be used by the application. Requires an `index.html` file. @@ -226,7 +226,9 @@ The frontend assets to be used by the application. Requires an `index.html` file Name: AssetsHandler -Type: \*http.Handler +Type: http.Handler + +![](http://badges.github.io/stability-badges/dist/experimental.svg) The assets handler is a generic `http.Handler` which will be called for any non GET request on the assets server and for GET requests which can not be served from the `assets` because the file is not found.