Created
April 20, 2023 05:10
-
-
Save froggomad/c2fdd8cd14feac1ab29656f2aec01d1c to your computer and use it in GitHub Desktop.
code block for test-3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.put("items", ":id") { req -> Item in | |
let id = req.parameters.get("id", as: UUID.self) | |
let updatedItem = try req.content.decode(Item.self) | |
return updatedItem | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment