package com.ffii.fpsms.modules.stock.web

import com.ffii.fpsms.modules.stock.entity.projection.InventoryInfo
import com.ffii.fpsms.modules.stock.service.InventoryService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/inventory")
class InventoryController(
    private val inventoryService: InventoryService,
) {
    @GetMapping("/list")
    fun allInventories(): List<InventoryInfo> {
        return inventoryService.allInventories()
    }
}