5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:51:38 +08:00

[v2, docs] Add experimental badge for assets handler and fix type definitions (#1328)

This commit is contained in:
stffabi 2022-04-12 14:35:09 +02:00 committed by GitHub
parent 6d09a45a30
commit cb2de2ad30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.