Created
April 20, 2023 05:10
-
-
Save froggomad/1999a1ffadb60bfae9d24aca32cfec75 to your computer and use it in GitHub Desktop.
code block for test-1
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.get("items") { req -> [Item] in | |
let item1 = Item(id: UUID(), name: "Item 1", description: "This is item 1.") | |
let item2 = Item(id: UUID(), name: "Item 2", description: "This is item 2.") | |
return [item1, item2] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment