Add share cards
This commit is contained in:
51 files changed
+1193
-239
No files matched your search
@@ -59,7 +59,7 @@ func (s *Server) Handler() http.Handler {
|
||||
func spaHandler(root fs.FS) http.Handler {
|
||||
fileServer := http.FileServerFS(root)
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
// Defence-in-depth — /api routes are matched by the mux first
|
||||
// Defence-in-depth, /api routes are matched by the mux first
|
||||
// with their GET patterns, but a bare POST /api/... would fall
|
||||
// through here. Return 404 so we don't accidentally shadow
|
||||
// API semantics with HTML.
|
||||
|
||||
Reference in new issue
Block a user