Created
March 16, 2017 17:58
-
-
Save kinathru/e31743259fcd55b5bae6a031e0ff3c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kinath.interwar; | |
import org.springframework.web.bind.annotation.CrossOrigin; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import org.springframework.web.bind.annotation.RestController; | |
/** | |
* Created by Kinath on 3/15/2017. | |
*/ | |
@CrossOrigin | |
@RestController | |
@RequestMapping("/groundservice") public class GroundService | |
{ | |
private static GroundService instance; | |
public static GroundService getInstance() | |
{ | |
if( instance == null ) | |
{ | |
instance = new GroundService(); | |
} | |
return instance; | |
} | |
@RequestMapping(value = "/message", method = RequestMethod.GET) | |
public String getMessage() | |
{ | |
return "Message from Ground Service"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment