feat(inventory): expose real inventory list
This commit is contained in:
@@ -8,6 +8,11 @@ import { InventoryBrowserService } from './inventory-browser.service';
|
|||||||
export class InventoryBrowserController {
|
export class InventoryBrowserController {
|
||||||
constructor(private readonly inventoryBrowser: InventoryBrowserService) {}
|
constructor(private readonly inventoryBrowser: InventoryBrowserService) {}
|
||||||
|
|
||||||
|
@Get('items')
|
||||||
|
items(@Query() query: InventoryBrowserQueryDto) {
|
||||||
|
return this.inventoryBrowser.items(query);
|
||||||
|
}
|
||||||
|
|
||||||
@Get('areas')
|
@Get('areas')
|
||||||
areas(@Query() query: InventoryBrowserQueryDto) {
|
areas(@Query() query: InventoryBrowserQueryDto) {
|
||||||
return this.inventoryBrowser.areas(query);
|
return this.inventoryBrowser.areas(query);
|
||||||
|
|||||||
Reference in New Issue
Block a user