Documentation ¶
Overview ¶
Package spa provides a Single Page Application server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Dir string
}
Server is an http.Handler which serves static files from Dir, and reverts to serving index.html for any missing files.
Requests which contain an extension — such as /favicon.ico — are greated as requests for a file, yielding 404 instead of serving /index.html.
Click to show internal directories.
Click to hide internal directories.