rm -r --cached pkg/web

This commit is contained in:
viljarb
2026-02-18 20:48:30 +01:00
parent a6ec856759
commit 77dd155299
37 changed files with 0 additions and 3558 deletions

View File

@@ -1,32 +0,0 @@
package server
import (
"embed"
"net/http"
"time"
"github.com/LazyBachelor/LazyPM/internal/service"
)
type Server struct {
Address string
Assets embed.FS
Services *service.Services
}
// NewServer creates and configures a new HTTP server instance.
func NewServer(props Server) *http.Server {
if props.Address == "" {
props.Address = ":8080"
}
handler := props.RegisterRoutes(props.Assets)
return &http.Server{
Addr: props.Address,
Handler: handler,
IdleTimeout: time.Minute,
ReadTimeout: time.Second * 10,
WriteTimeout: time.Second * 10,
}
}