All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spincast.demos.better.App Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.spincast.demos.better;

import org.spincast.core.server.Server;
import org.spincast.defaults.bootstrapping.Spincast;
import org.spincast.plugins.routing.DefaultRouter;

import com.google.inject.Inject;

public class App {

    public static void main(String[] args) {
        Spincast.configure()
                .module(new AppModule())
                .init(args);
    }

    @Inject
    protected void init(Server server, DefaultRouter router, AppController ctrl) {
        router.GET("/").handle(ctrl::index);
        server.start();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy