Author: Not specified Language: bash
Description: (v6) Timestamp: 2018-06-24 12:30:34 +0000
View raw paste Parent paste by: Not specified Reply
router.post("api", "acronyms") { request -> Future<Acronym> in
    return try request.content.decode(Acronym.self)
                                                .flatMap(to: Acronym.self) {
        return acronym.save(on: request)
    }
}
View raw paste Parent paste by: Not specified Reply