add js
This commit is contained in:
parent
9b69b25d0b
commit
baf5292212
2 changed files with 2 additions and 1 deletions
1
examples/minimal-htmgo/assets/public/htmgo.js
Normal file
1
examples/minimal-htmgo/assets/public/htmgo.js
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -8,7 +8,7 @@ import (
|
|||
func main() {
|
||||
router := chi.NewRouter()
|
||||
|
||||
fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./assets/dist")))
|
||||
fileServer := http.StripPrefix("/public", http.FileServer(http.Dir("./assets/public")))
|
||||
router.Handle("/public/*", fileServer)
|
||||
|
||||
router.Get("/", func(writer http.ResponseWriter, request *http.Request) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue