You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
581 B
17 lines
581 B
package items
|
|
|
|
import (
|
|
"github.com/dustinpianalto/quartermaster/pkg/utils"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func GetRouter() *mux.Router {
|
|
router := mux.NewRouter()
|
|
router.Handle("/", utils.AuthenticationMiddleware(items))
|
|
router.Handle("/getItemByBarcode/{barcode}", utils.AuthenticationMiddleware(getItemByBarcode))
|
|
router.Handle("/{id}/moveItem", utils.AuthenticationMiddleware(moveItem))
|
|
router.Handle("/{id}/removeItem", utils.AuthenticationMiddleware(removeItem))
|
|
router.Handle("/{id}/getLocationCount", utils.AuthenticationMiddleware(getLocationCount))
|
|
return router
|
|
}
|