23 lines
581 B
Java
23 lines
581 B
Java
package com.interplug.qcast.biz;
|
|
|
|
import com.interplug.qcast.config.message.Messages;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@Slf4j
|
|
@RestController
|
|
@RequestMapping("/api/main")
|
|
public class MainController {
|
|
|
|
@Autowired
|
|
Messages message;
|
|
|
|
@GetMapping
|
|
public String Main() {
|
|
return message.getMessage("example.msg.001");
|
|
}
|
|
}
|