Skip to content

Commit

Permalink
add health controller
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrSaven committed Oct 3, 2023
1 parent 6277caf commit ad32565
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.project.carsharingapp.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "Health management",
description = "Send message if application is running")
@RestController
@RequestMapping(value = "/health")
public class HealthController {
@GetMapping
public String checkHealth() {
return "Application is up and running";
}
}

0 comments on commit ad32565

Please sign in to comment.