Author: Not specified Language: javascript
Description: (v38) Timestamp: 2018-06-17 11:56:56 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
router.post("api", "acronyms") { request -> Future<Acronym> in
    return try request.content.decode(Acronym.self)
        .flatMap(to: Acronym.self) { acronym in
        return acronym.save(on: request)
     }
}
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply