// Path: falchion-example-enkan/src/main/java/net/unit8/falchion/example/controller/IndexController.java
// public class IndexController {
//     @Inject
//     private TemplateEngine templateEngine;
// 
//     public HttpResponse index() {
//         return templateEngine.render("index",
//                 "message", "Hellooooooooooooooooooo");
//     }
// }


import enkan.Application;
import enkan.application.WebApplication;
import enkan.config.ApplicationFactory;
import enkan.endpoint.ResourceEndpoint;
import enkan.middleware.*;
import enkan.system.inject.ComponentInjector;
import kotowari.middleware.ControllerInvokerMiddleware;
import kotowari.middleware.FormMiddleware;
import kotowari.middleware.RenderTemplateMiddleware;
import kotowari.middleware.RoutingMiddleware;
import kotowari.routing.Routes;
import net.unit8.falchion.example.controller.IndexController;
import static enkan.util.Predicates.NONE;
package net.unit8.falchion.example;



public class ExampleApplicationFactory implements ApplicationFactory {
    @Override
    public Application create(ComponentInjector injector) {
        WebApplication app = new WebApplication();

// Path: falchion-example-enkan/src/main/java/net/unit8/falchion/example/controller/IndexController.java
// public class IndexController {
//     @Inject
//     private TemplateEngine templateEngine;
// 
//     public HttpResponse index() {
//         return templateEngine.render("index",
//                 "message", "Hellooooooooooooooooooo");
//     }
// }


// Path: falchion-example-enkan/src/main/java/net/unit8/falchion/example/ExampleApplicationFactory.java
import enkan.Application;
import enkan.application.WebApplication;
import enkan.config.ApplicationFactory;
import enkan.endpoint.ResourceEndpoint;
import enkan.middleware.*;
import enkan.system.inject.ComponentInjector;
import kotowari.middleware.ControllerInvokerMiddleware;
import kotowari.middleware.FormMiddleware;
import kotowari.middleware.RenderTemplateMiddleware;
import kotowari.middleware.RoutingMiddleware;
import kotowari.routing.Routes;
import net.unit8.falchion.example.controller.IndexController;
import static enkan.util.Predicates.NONE;

package net.unit8.falchion.example;



public class ExampleApplicationFactory implements ApplicationFactory {
    @Override
    public Application create(ComponentInjector injector) {
        WebApplication app = new WebApplication();

        Routes routes = Routes.define(r -> r.get("/").to(IndexController.class, "index")).compile();