package com.ppk.covidcheck.controller; | |
import com.ppk.covidcheck.model.Patient; | |
import com.ppk.covidcheck.model.Result; | |
import com.ppk.covidcheck.service.EvaluatePatient; | |
import com.ppk.covidcheck.service.EvaluatePatientForCorona; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.web.bind.annotation.PostMapping; | |
import org.springframework.web.bind.annotation.RequestBody; | |
import org.springframework.web.bind.annotation.RestController; | |
@RestController | |
public class CovidCheckController { | |
@Autowired | |
EvaluatePatientForCorona evaluatePatient; | |
@PostMapping("/check") | |
public Result logGreet(@RequestBody Patient patient) { | |
return evaluatePatient.evaluatePatient(patient); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment