mirror of https://github.com/reiseburo/offtopic
Minor API changes between the last version of ratpack 0.9 and 0.9.19
This commit is contained in:
parent
a09866ce3f
commit
4b5de1c70a
|
@ -15,9 +15,10 @@ ratpack {
|
||||||
bindings {
|
bindings {
|
||||||
offtopic.Configuration.instance.loadDefaults()
|
offtopic.Configuration.instance.loadDefaults()
|
||||||
offtopic.curator.CuratorPool.prepare(Configuration.instance.zookeepers)
|
offtopic.curator.CuratorPool.prepare(Configuration.instance.zookeepers)
|
||||||
add new HandlebarsModule()
|
module HandlebarsModule
|
||||||
add new JacksonModule()
|
module JacksonModule
|
||||||
}
|
}
|
||||||
|
|
||||||
handlers {
|
handlers {
|
||||||
get {
|
get {
|
||||||
render handlebarsTemplate('index.html')
|
render handlebarsTemplate('index.html')
|
||||||
|
@ -91,7 +92,7 @@ ratpack {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assets 'public'
|
fileSystem "public", { f -> f.files() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue