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

com.lightningkite.lightningserver.routes.Routes.kt Maven / Gradle / Ivy

The newest version!
package com.lightningkite.lightningserver.routes

import com.lightningkite.lightningserver.core.ServerPath
import com.lightningkite.lightningserver.settings.generalSettings

private val docNames = HashMap()
public var ServerPath.docName: String?
    get() = docNames[this]
    set(value) {
        docNames[this] = value
    }

fun ServerPath.fullUrl(parts: Map = mapOf(), wildcard: String = ""): String =
    generalSettings().publicUrl + this.toString(parts = parts, wildcard = wildcard)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy