implement proper sever route handling

This commit is contained in:
Robin Olsen
2026-02-02 14:16:08 +01:00
parent 622e830f6e
commit c69fd84fdd
10 changed files with 290 additions and 35 deletions

View File

@@ -0,0 +1,21 @@
package handler
import (
"net/http"
"github.com/LazyBachelor/LazyPM/internal/service"
)
type Route struct {
Pattern string
Handler http.Handler
}
func GetRoutes(svc *service.Services) []Route {
var routes []Route
routes = append(routes, PagesRoutes(svc)...)
routes = append(routes, IssuesRoutes(svc)...)
return routes
}