differ-core / com.differ.differcore.controllers / DifferController

DifferController

@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

Constructors

<init>

Is used for autowire required beans.

DifferController(diffService: DiffService, versionService: VersionService, leftRenderer: Renderer, rightRenderer: Renderer)

Functions

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

Companion Object Properties

DEFAULT_URL

Default url for all requests of this controller.

const val DEFAULT_URL: String