cml04-falcon-ui/routes/routes.go

20 lines
659 B
Go
Raw Normal View History

2024-10-04 20:02:51 +02:00
package routes
import (
"git.espin.casa/albert/cml04-falcon-ui/handlers"
"git.espin.casa/albert/cml04-falcon-ui/storage"
"github.com/julienschmidt/httprouter"
)
func CreateRoutes(r *httprouter.Router, storage storage.Storager) {
2024-10-06 18:33:18 +02:00
r.GET("/", handlers.IndexHandler(storage))
2024-10-06 06:12:43 +02:00
r.GET("/hbcp", handlers.HBCPHandler(storage))
2024-10-06 18:33:18 +02:00
r.GET("/po", handlers.PoHandler(storage))
r.GET("/co", handlers.CoHandler(storage))
r.GET("/bcp", handlers.BCPHandler(storage))
r.GET("/lcp", handlers.LCPHandler(storage))
2024-10-06 06:12:43 +02:00
r.GET("/barcodes", handlers.BarcodesHandler(storage))
2024-10-06 18:33:18 +02:00
r.GET("/labels", handlers.LabelsHandler())
r.GET("/standards", handlers.StandardsHandler(storage))
2024-10-04 20:02:51 +02:00
}