mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
Manage API Method Registration from main
This commit is contained in:
parent
c3d5e3edc1
commit
be852d0655
5 changed files with 22 additions and 39 deletions
|
@ -18,8 +18,8 @@ type Handler struct {
|
|||
maxRequestSize int64
|
||||
}
|
||||
|
||||
func NewHandler(maxRequestSize int64) Handler {
|
||||
return Handler{
|
||||
func NewHandler(maxRequestSize int64) *Handler {
|
||||
return &Handler{
|
||||
methods: map[string]method{},
|
||||
maxRequestSize: maxRequestSize,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue