com.lightningkite.lightningserver.db.ModelEndpoints.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningserver.db
import com.lightningkite.lightningdb.HasId
import com.lightningkite.lightningserver.core.ServerPath
import com.lightningkite.lightningserver.core.ServerPathGroup
abstract class ModelEndpoints, ID : Comparable>(
path: ServerPath,
val info: ModelInfoWithDefault
) : ServerPathGroup(path) {
open val rest: ModelRestEndpoints = ModelRestEndpoints(path("rest"), info)
open val admin: ModelAdminEndpoints = ModelAdminEndpoints(path("rest"), info)
}