cml04-falcon-system/handset/routes/routes.go

13 lines
369 B
Go
Raw Permalink Normal View History

2024-10-01 20:28:58 +02:00
package routes
import (
"git.espin.casa/albert/cml04-falcon-system/handset/handlers"
2024-10-02 13:40:27 +02:00
"git.espin.casa/albert/cml04-falcon-system/internal/publisher"
2024-10-01 20:28:58 +02:00
"github.com/julienschmidt/httprouter"
)
2024-10-02 10:36:08 +02:00
func CreateRoutes(r *httprouter.Router, publisher publisher.Publisher) {
2024-10-01 20:28:58 +02:00
r.GET("/", handlers.IndexHandler())
2024-10-02 10:36:08 +02:00
r.GET("/barcode/:barcode", handlers.BarCodeHandler(publisher))
2024-10-01 20:28:58 +02:00
}