Manage API Method Registration from main

This commit is contained in:
Samuel Lorch 2023-03-05 21:11:37 +01:00
parent c3d5e3edc1
commit be852d0655
5 changed files with 22 additions and 39 deletions

View file

@ -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,
}