cask.main.Routes.scala Maven / Gradle / Ivy
The newest version!
package cask.main
import cask.router.RoutesEndpointsMetadata
import language.experimental.macros
trait Routes{
def decorators = Seq.empty[cask.router.Decorator[_, _, _, _]]
private[this] var metadata0: RoutesEndpointsMetadata[this.type] = null
def caskMetadata =
if (metadata0 != null) metadata0
else throw new Exception("Routes not yet initialized")
protected[this] inline def initialize(): Unit = ${
RoutesEndpointsMetadata.setRoutesImpl[this.type](
'{(x: RoutesEndpointsMetadata[this.type]) => metadata0 = x}
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy