|
@@ -63,6 +63,7 @@ rest.get('/fortunes/mongodb').then {
|
|
|
|
|
|
def response = templateHeader
|
|
def response = templateHeader
|
|
fortunes.each {
|
|
fortunes.each {
|
|
|
|
+ it._id = it._id as Integer
|
|
response += "<tr><td>${it._id}</td><td>${it.message}</td></tr>"
|
|
response += "<tr><td>${it._id}</td><td>${it.message}</td></tr>"
|
|
}
|
|
}
|
|
response += templateTail
|
|
response += templateTail
|