62927da239ff45cef4863f613c5b486d3fc2ebac
[institute/sw-backend.git] /
1 package com.supwisdom.institute.backend.admin.bff.apis.controller.base;
2
3 import org.springframework.util.MimeTypeUtils;
4 import org.springframework.web.bind.annotation.RequestMapping;
5 import org.springframework.web.bind.annotation.RequestMethod;
6 import org.springframework.web.bind.annotation.RestController;
7
8 import com.supwisdom.institute.backend.common.core.transmit.user.UserContext;
9
10 @RestController
11 @RequestMapping(value = "/v1/admin/base")
12 public class AdminBaseController {
13   
14   @RequestMapping(method = RequestMethod.GET, produces = MimeTypeUtils.APPLICATION_JSON_VALUE)
15   public String hello() {
16     return "hello, " + UserContext.getUsername();
17   }
18
19 }