@Controller @RequestMapping(["/v1/differ"]) class DifferController
Main controller of the application.
By default all requests are mapping to the DEFAULT_URL.
Author
Vladislav Iusiumbeli
Since
1.0.0
<init> |
Is used for autowire required beans. DifferController(diffService: DiffService, versionService: VersionService, leftRenderer: Renderer, rightRenderer: Renderer) |
getFullPage |
Request for a full html page with version differences. fun getFullPage(model: Model, old: String?, new: String?): String |
getOnlyDiff |
Request only diff part of the html page. fun getOnlyDiff(model: Model, old: String, new: String): String |
DEFAULT_URL |
Default url for all requests of this controller. const val DEFAULT_URL: String |