Most of the gaming environment I see a block of code
def info(id: Long) = SecuredApiAction { implicit request =>
maybeItem(Task.findById(id))
}
yes, my understanding defines a method info(id: Long)and in the scala doc to create a function in scala, the syntax is as follows:
def functionName ([list of parameters]) : [return type] = {
function body
return [expr]
}
Can you tell me what it means implicit request =>and SecuredApiActionput before{
source
share