HomeController.java 603 B

1234567891011121314151617181920212223
  1. package controllers;
  2. import play.mvc.*;
  3. import views.html.*;
  4. /**
  5. * This controller contains an action to handle HTTP requests
  6. * to the application's home page.
  7. */
  8. public class HomeController extends Controller {
  9. /**
  10. * An action that renders an HTML page with a welcome message.
  11. * The configuration in the <code>routes</code> file means that
  12. * this method will be called when the application receives a
  13. * <code>GET</code> request with a path of <code>/</code>.
  14. */
  15. public Result index() {
  16. return ok(index.render("Your new application is ready."));
  17. }
  18. }