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

com.infobip.kafkistry.webapp.url.AboutUrls.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.infobip.kafkistry.webapp.url

class AboutUrls(base: String) : BaseUrls() {

    companion object {
        const val ABOUT = "/about"
        const val BUILD_INFO = "/build-info"
        const val USERS_SESSIONS = "/users-sessions"
        const val SCRAPING_STATUSES = "/scraping-statuses"
        const val BACKGROUND_JOBS = "/background-jobs"
    }

    private val showAboutPage = Url(base)
    private val showBuildInfo = Url("$base$BUILD_INFO")
    private val showUsersSessions = Url("$base$USERS_SESSIONS")
    private val showScrapingStatuses = Url("$base$SCRAPING_STATUSES")
    private val showBackgroundJobs = Url("$base$BACKGROUND_JOBS")

    fun showAboutPage() = showAboutPage.render()
    fun showBuildInfo() = showBuildInfo.render()
    fun showUsersSessions() = showUsersSessions.render()
    fun showScrapingStatuses() = showScrapingStatuses.render()
    fun showBackgroundJobs() = showBackgroundJobs.render()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy