remove assets dir
This commit is contained in:
parent
baf5292212
commit
e0bb30b976
2 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
router := chi.NewRouter()
|
router := chi.NewRouter()
|
||||||
|
|
||||||
fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./assets/public")))
|
fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./public")))
|
||||||
router.Handle("/public/*", fileServer)
|
router.Handle("/public/*", fileServer)
|
||||||
|
|
||||||
router.Get("/", func(writer http.ResponseWriter, request *http.Request) {
|
router.Get("/", func(writer http.ResponseWriter, request *http.Request) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue