package com.ffii.fpsms.modules.master.web

import com.ffii.fpsms.modules.master.entity.Bom
import com.ffii.fpsms.modules.master.service.BomService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/bom")
class BomController (
    val bomService: BomService,
) {
    @GetMapping
    fun getBoms(): List<Bom> {
        return bomService.findAll()
    }
}