Skip to content

Instantly share code, notes, and snippets.

@kinathru
Created March 16, 2017 17:57
Show Gist options
  • Save kinathru/2897f79ae5b86fee5af015d9043f0667 to your computer and use it in GitHub Desktop.
Save kinathru/2897f79ae5b86fee5af015d9043f0667 to your computer and use it in GitHub Desktop.
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("/frontservice")
public class FronRestController
{
@RequestMapping(value = "/frontmessage",method = RequestMethod.GET)
public String getFrontMessage()
{
return ServiceHandler.getiGroundService().getMessage();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment