cml04-falcon-printer/routes/routes.go
2024-10-25 22:17:44 +02:00

13 lines
353 B
Go

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))
r.GET("/cos/:po", handlers.ListCustomerOrderHandler(storage))
}