spa

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package spa serves the embedded single-page web app.

Index

Constants

View Source
const CSP = "" /* 196-byte string literal not displayed */

CSP is the policy for the web app: same-origin only, no inline script or style, no framing. shortcut: connect-src 'self' relies on browsers matching ws(s) to 'self'; older Safari does not, so add wss://<BRAID_PUBLIC_URL host> (and a securitypolicyviolation check in the web e2e) if live updates fail there.

Variables

This section is empty.

Functions

func Handler

func Handler(files fs.FS) http.Handler

Handler serves files from files, falling back to index.html for client-side routes. Paths of the API, device and auth endpoints that reach it answer 404.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL