add display, but no edit yet

This commit is contained in:
gowthaman
2024-04-30 01:05:54 +05:30
parent ecf31b1b74
commit 712543ec3c
5 changed files with 21 additions and 9 deletions

View File

@@ -125,6 +125,12 @@ fun main(args: Array<String>) {
put("/{id}", VendorCtrl::update, Roles(Role.Explicit("ROLE_VENDOR_CREATE")))
}
path("/incoming") {
get("/plants", IncomingInventoryCtrl::plantsForUser,
Roles(
Role.Explicit("ROLE_INVENTORY_CREATE"),
Role.Explicit("ROLE_INVENTORY_VIEW")
)
)
post("", IncomingInventoryCtrl::create, Roles(Role.Explicit("ROLE_INVENTORY_CREATE")))
get("/next", IncomingInventoryCtrl::getNextNum, Roles(Role.Explicit("ROLE_INVENTORY_CREATE")))
get(