Package doist.ffs.ext

Types

Link copied to clipboard
data class OptionalPathSegmentConstantRouteSelector(value: String) : RouteSelector

Evaluates a route against an optional constant path segment.

Functions

Link copied to clipboard
fun PC.authorizeForOrganization(id: Long, permission: Permission)

Ensure access can access organization with id with permission.

Link copied to clipboard
fun PC.authorizeForProject(id: Long, permission: Permission)

Ensure access can access project with id with permission.

Link copied to clipboard
fun PC.authorizeForUser(id: Long)

Ensure access is user with id.

Link copied to clipboard
inline fun <T : Any> PC.href(resource: T): String
inline fun <T : Any> PC.href(resource: T, builder: URLBuilder)

Proxy href to the underlying application.

Link copied to clipboard
fun Route.optionalRoute(path: String, build: Route.() -> Unit): Route

Builds a route to optionally match specified path, if it exists.