desvergue-de-alexandro
java 20 lines 608 Bytes
Raw
1 package com.tecmilenio.mapsconect.controller;
2
3 import com.tecmilenio.mapsconect.dto.ApiResponse;
4 import org.springframework.http.ResponseEntity;
5 import org.springframework.web.bind.annotation.GetMapping;
6 import org.springframework.web.bind.annotation.RequestMapping;
7 import org.springframework.web.bind.annotation.RestController;
8
9 @RestController
10 @RequestMapping("/health")
11 public class HealthController {
12
13 @GetMapping
14 public ResponseEntity<ApiResponse<String>> health() {
15 return ResponseEntity.ok(
16 ApiResponse.success("MAPS Connect Backend is running", "OK")
17 );
18 }
19
20 }