feat: add unified authorization middleware
This commit is contained in:
@@ -9,7 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func TestHTTPRouterIsAvailable(t *testing.T) {
|
||||
srv := New()
|
||||
srv, err := New("0123456789abcdef0123456789abcdef", 3600, []string{"/healthz"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
srv.HTTP.GET("/healthz", func(c *gin.Context) { c.Status(http.StatusNoContent) })
|
||||
|
||||
request := httptest.NewRequest(http.MethodGet, "/healthz", nil)
|
||||
|
||||
Reference in New Issue
Block a user