package com.exactsix.mibaas.login;

import javax.annotation.Resource;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.exactsix.mibaas.common.response.RestResponse;

/**
 * <pre>
 * Class Name  : LoginController.java
 * Description :
 * Modification Information
 * 
 * </pre>
 * 
 * @author dave
 * @since 2014. 9. 16.
 * @version 1.0
 * 
 */
@RequestMapping("/api")
@Controller
public class LoginController {

	@RequestMapping(value = "/users", method = RequestMethod.GET)
	public @ResponseBody RestResponse list() {
		//
		return null;
	}

}

@@ -64,16 +64,79 @@
 ource;%0A%0A
+import org.springframework.beans.factory.annotation.Autowired;%0A
 import o
@@ -170,16 +170,16 @@
 iaType;%0A
-
 import o
@@ -524,16 +524,71 @@
 esponse;
+%0Aimport com.exactsix.mibaas.login.service.LoginService;
 %0A%0A/**%0A *
@@ -826,16 +826,65 @@
 ller %7B%0A%0A
+%09@Autowired%0A%09private LoginService loginService;%0A%0A
 %09@Reques
@@ -906,13 +906,13 @@
 = %22/
-users
+login
 %22, m
@@ -978,21 +978,17 @@
 se l
-ist
+ogin
 () %7B%0A
-%09%09//%0A
 %09%09re
@@ -996,12 +996,31 @@
 urn 
-null
+loginService.getLogin()
 ;%0A%09%7D

Modify Login Controller