package com.devjob.controller;

import com.devjob.dto.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 첫 번째 REST API.
 *
 * GET /api/hello → {"success":true,"message":"success","data":"Hello DevJob!"}
 */
@RestController
@RequestMapping("/api")
public class HelloController {

    @GetMapping("/hello")
    public ApiResponse<String> hello() {
        return ApiResponse.ok("Hello DevJob!");
    }
}
