Skip to content

Commit

Permalink
Merge branch 'v2-others' of github.com:sfomuseum/go-http-sfomuseum
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Mar 28, 2023
2 parents 6a556c2 + d6bebcf commit 20e5499
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sfomuseum.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,20 @@ func AppendAssetHandlers(mux *http.ServeMux, opts *SFOMuseumOptions) error {
return aa_static.AppendStaticAssetHandlersWithPrefix(mux, static.FS, opts.Prefix)
}

others := []string{
"images",
"fonts",
}

for _, label := range others {

err := serveSubDir(mux, opts, label)

if err != nil {
return fmt.Errorf("Failed to serve %s sub directory, %w", label, err)
}
}

// START OF this should eventually be made a generic function in go-http-rollup

js_paths := make([]string, len(opts.JS))
Expand Down

0 comments on commit 20e5499

Please sign in to comment.