Documentation
¶
Index ¶
- func LogRequestHandler(h http.Handler) http.Handler
- func LogRequestSPAHandler(h http.Handler, staticFileServer fs.FS, staticDir string) http.Handler
- func SPAStaticServePath(httpMux *http.ServeMux, urlPath string, embedFS fs.FS, staticDir string)
- func StaticServeAiPath(gw *http.ServeMux, urlPath string, staticDir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequestSPAHandler ¶
func SPAStaticServePath ¶
gw http Server mux urlPath - the url path, which the file server listents to eg: /, /static, /assets, /public staticDir - actual directory from which the files are served
func StaticServeAiPath ¶
gw http Server mux serves Ai images and other generated resources SPA is not active here urlPath - the url path, which the file server listents to eg: /, /static, /assets, /public staticDir - actual directory from which the files are served
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.