Documentation
¶
Overview ¶
Package server wires the API, short-link redirector, and embedded SPA behind a single http.Handler.
Routing:
- /api/* → JSON API
- /admin/* → embedded React dashboard (assets + SPA fallback)
- / → redirect to /admin/
- /{slug} → short-link redirect (the root namespace belongs to links)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the top-level HTTP handler.
Click to show internal directories.
Click to hide internal directories.