cml04-falcon-printer/routes/routes.go

13 lines
353 B
Go
Raw Permalink Normal View History

2024-10-24 10:58:03 +02:00
package routes
import (
"git.espin.casa/albert/cml04-falcon-printer/handlers"
"git.espin.casa/albert/cml04-falcon-printer/storage"
"github.com/julienschmidt/httprouter"
)
func CreateRoutes(r *httprouter.Router, storage storage.Storager) {
r.GET("/", handlers.IndexHandler(storage))
2024-10-25 22:17:44 +02:00
r.GET("/cos/:po", handlers.ListCustomerOrderHandler(storage))
2024-10-24 10:58:03 +02:00
}