spa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package spa embeds the built SPA (cartograph/web, built with `npm run build` into web/dist and synced here by `make generate`, since Go embed cannot reach outside its module) and serves it at "/", falling back to index.html for any path that is not a real file, so client-side routes resolve on a hard refresh. Never applied to "/api": the caller mounts that separately, before this handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler serves the embedded build with a single-page-app fallback.

Types

This section is empty.

Jump to

Keyboard shortcuts

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