remove from pages as its not needed

This commit is contained in:
maddalax 2024-11-21 07:29:51 -06:00
parent ba8c0106d9
commit 495e759689
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
package pages
package main
import (
"github.com/maddalax/htmgo/framework/h"

View file

@ -2,7 +2,6 @@ package main
import (
"github.com/go-chi/chi/v5"
"minimal-htmgo/pages"
"net/http"
)
@ -13,11 +12,11 @@ func main() {
router.Handle("/public/*", fileServer)
router.Get("/", func(writer http.ResponseWriter, request *http.Request) {
RenderPage(request, writer, pages.Index)
RenderPage(request, writer, Index)
})
router.Get("/current-time", func(writer http.ResponseWriter, request *http.Request) {
RenderPartial(request, writer, pages.CurrentTime)
RenderPartial(request, writer, CurrentTime)
})
http.ListenAndServe(":3000", router)