Enabling static files
This commit is contained in:
@ -20,5 +20,8 @@ func routes(app *config.AppConfig) http.Handler {
|
||||
mux.Get("/", handlers.Repo.Home)
|
||||
mux.Get("/about", handlers.Repo.About)
|
||||
|
||||
fileServer := http.FileServer(http.Dir("./static/"))
|
||||
mux.Handle("/static/*", http.StripPrefix("/static", fileServer))
|
||||
|
||||
return mux
|
||||
}
|
||||
|
Reference in New Issue
Block a user