All checks were successful
Build and test backend / Build-backend (push) Successful in 2m7s
Build and test backend / Test-backend (push) Successful in 1m22s
Build and test FrontEnd / Build-frontend (push) Successful in 22s
Build and test FrontEnd / Test-frontend (push) Successful in 22s
deploy to production / deploy-frontend (push) Successful in 24s
deploy to production / deploy-backend (push) Successful in 1m28s
removing cors fails. refactoring ping as a proposal for rest endpoints locations Reviewed-on: #42 Reviewed-by: Maxime <231026@umons.ac.be> Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com> Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
21 lines
466 B
Java
21 lines
466 B
Java
package ovh.herisson.Clyde.EndPoints;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import ovh.herisson.Clyde.Responses.PingResponse;
|
|
|
|
@RestController
|
|
@CrossOrigin(origins = "http://localhost:5173")
|
|
public class PingController {
|
|
|
|
@GetMapping("/ping")
|
|
public PingResponse ping(){
|
|
return new PingResponse(1, "pong");
|
|
}
|
|
|
|
}
|
|
|
|
|