mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix wrong chi version
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
"npm/internal/api/context"
|
||||
"npm/internal/model"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/rotisserie/eris"
|
||||
)
|
||||
|
||||
@ -112,7 +112,6 @@ func getURLParamInt(r *http.Request, varName string) (uint, error) {
|
||||
return defaultValue, nil
|
||||
}
|
||||
|
||||
// func ParseUint(s string, base int, bitSize int) (n uint64, err error)
|
||||
paramUint, err := strconv.ParseUint(paramStr, 10, 32)
|
||||
if err != nil {
|
||||
return 0, eris.Wrapf(err, "%v is not a valid number", varName)
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"npm/internal/api/middleware"
|
||||
"npm/internal/entity/setting"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
// GetSettings will return a list of Settings
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"npm/internal/errors"
|
||||
"npm/internal/logger"
|
||||
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
// GetUsers returns all users
|
||||
|
Reference in New Issue
Block a user