package com.red.circle.gateway;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 提供给客户端, 检查服务是否可用.
 *
 * @author pengliang on 2023/12/29
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/ping")
public class PingRestController {

  @RequestMapping
  public String ping() {
    return "OK";
  }

}
