Split code in respective files.

Resource method name change.

Route list func
This commit is contained in:
2025-08-16 11:19:45 +05:30
parent f91090b35e
commit 855b82e9df
10 changed files with 506 additions and 366 deletions

View File

@@ -10,7 +10,7 @@ import (
)
func TestHelmet(t *testing.T) {
r := mux.NewRouter()
r := mux.New()
r.Use(Helmet(HelmetOption{}))
r.GET("/hello", func(writer http.ResponseWriter, request *http.Request) {
_, _ = writer.Write([]byte("hello there"))