cml04-falcon-ui/routes/routes.go

15 lines
376 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) {
r.GET("/", handlers.IndexHandler())
2024-10-06 06:12:43 +02:00
r.GET("/hbcp", handlers.HBCPHandler(storage))
r.GET("/barcodes", handlers.BarcodesHandler(storage))
2024-10-04 20:02:51 +02:00
}