blob: be33581be23a3c2fe4ceb7fbe6f7d9e3ec325cbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package cask.main
import language.experimental.macros
trait Routes{
def decorators = Seq.empty[cask.main.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
}
}
|