Commit 0aa56462 by carrieyzzhang

trackingio login url

parent 07e37b22
package com.reyun.controller;
import com.reyun.repository.ConfigParamRepository;
import com.reyun.util.ResultModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Created by nolan on 06/06/2017.
......@@ -10,4 +15,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("index")
public class IndexController {
@Autowired
ConfigParamRepository configParamRepository;
@RequestMapping(value = "trackingio", method = RequestMethod.GET)
@ResponseBody
public ResultModel findUserIOUrl() {
return ResultModel.OK(configParamRepository.findParamsByKey("trackingio_login_url"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment