blob: 512860a2dfcd09745c582e02b039da8c7fff6523 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package cask.main
import cask.router.RoutesEndpointsMetadata
import language.experimental.macros
trait Routes{
def decorators = Seq.empty[cask.router.RawDecorator]
private[this] var metadata0: RoutesEndpointsMetadata[this.type] = null
def caskMetadata =
if (metadata0 != null) metadata0
else throw new Exception("Routes not yet initialize")
protected[this] def initialize()(implicit routes: RoutesEndpointsMetadata[this.type]): Unit = {
metadata0 = routes
}
def log: cask.util.Logger
}
|