package com.jasamedika.medifirst2000.controller; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import static org.springframework.web.bind.annotation.RequestMethod.GET; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.jasamedika.medifirst2000.service.MigrasiPasienService; /** * @author Salman * @version 1.0.0 * @since 06/11/2023 */ @RestController @RequestMapping("/migrasi/pasien") public class MigrasiPasienController { @Autowired private MigrasiPasienService migrasiPasienService; @RequestMapping(value = "/init", method = GET, produces = APPLICATION_JSON_VALUE) public ResponseEntity initiateMigrasiPasien() { migrasiPasienService.init(); return new ResponseEntity<>(null, HttpStatus.OK); } }