mirror of
https://github.com/genuinetools/reg.git
synced 2024-05-12 17:38:31 -04:00
update static and staticAssetsHandler
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
0301f323b3
commit
691235af75
|
@ -167,8 +167,9 @@ func (cmd *serverCommand) Run(ctx context.Context, args []string) error {
|
|||
}
|
||||
|
||||
// Serve the static assets.
|
||||
staticHandler := http.FileServer(static.Assets)
|
||||
mux.PathPrefix("/static/").Handler(http.StripPrefix("/static/", staticHandler))
|
||||
staticAssetsHandler := http.FileServer(static.Assets)
|
||||
mux.PathPrefix("/static/").Handler(http.StripPrefix("/static/", staticAssetsHandler))
|
||||
staticHandler := http.FileServer(http.Dir(staticDir))
|
||||
mux.Handle("/", staticHandler)
|
||||
|
||||
// Set up the server.
|
||||
|
|
Loading…
Reference in a new issue