Skip to content

Commit

Permalink
Added Basic API, NFTs and updated gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mw2000 committed Nov 30, 2020
1 parent b5ffedc commit 5de509f
Show file tree
Hide file tree
Showing 6 changed files with 422 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.DS_Store
27 changes: 27 additions & 0 deletions api/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const express = require('express')
const app = express()
const port = 8000

app.get('/item/1/', (req, res) => {
res.json(
{
name: "Netherite Sword",
description: "Strongest sword in the game",
artUrl: "https://bit.ly/33wkOGX"
}
)
})

app.get('/item/2/', (req, res) => {
res.json(
{
name: "Lucky Potion",
description: "Makes you invincible",
artUrl: "https://bit.ly/3fPzJRo"
}
)
})

app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})
Loading

0 comments on commit 5de509f

Please sign in to comment.