File size: 613 Bytes
1c8e50c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package in.garvit.tasks.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Home Controller for Task Service
 * Provides basic health check and welcome endpoints
 */
@RestController
public class HomeController {

	/**
	 * Welcome endpoint for Task Service
	 * @return welcome message
	 */
	@GetMapping("/tasks")
	public ResponseEntity<String> home() {
		return new ResponseEntity<>("Welcome to Task Service", HttpStatus.OK);
	}
}