spa

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package spa provides an application module that falls back to an index file for missing HTML routes in a single-page application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(index string, fs fs.FS) application.Module

New returns a single-page application module that serves index from fs when another handler returns a not-found response for a request accepting HTML. An empty index defaults to "index.html".

Types

This section is empty.

Jump to

Keyboard shortcuts

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