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(originPatterns = "*", allowCredentials = "true")
public class PingController {

	@GetMapping("/ping")
	public PingResponse ping(){
		return new PingResponse(1, "pong");
	}
	
}


