Created
January 9, 2014 04:39
-
-
Save codingricky/8329483 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 controllers; | |
import com.google.inject.Inject; | |
import play.mvc.Controller; | |
import play.mvc.Result; | |
import services.GreetingService; | |
import views.html.index.*; | |
public class Application extends Controller { | |
@Inject | |
private GreetingService greetingService; | |
public Result index() { | |
return ok(index.render(greetingService.greeting())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment