This project based upon vert.x toolkit to simplify web development.
Newhost2 lets you to develop web applications with minimal effort. You just define a controller class for your route by an annotation and that's all.
If you send a request for the first time then will be created blank page (index.html
) where you can put your content.
No need to create that page manually.
public class MainMenuController {
/**
* Performs requests for index page (http://somesite.com or http://somesite.com/index)
*/
@GET // request type
@Path(value = {"/", "/index"})
public Result index() {
// do some logic
return Result.HTML(); // response html page to browser
}
}