import express from 'express'

const app = express()

app.use(express.static('client/build'))

app.get('/api/hello', (req, resp) => {
  console.log('hello')
  resp.send('hello')
})

const port = process.env.PORT || 3001
app.listen(port, () => {
  console.log(`Listening at http://localhost:${port}`)
})

@@ -88,16 +88,211 @@
 ild'))%0A%0A
+//TODO use a database...%0Aconst cash = %7B%0A  123: %7B%0A    items: %7B%0A      500: %7B%0A        facial: 500,%0A        count: 2%0A      %7D,%0A      200: %7B%0A        facial: 200,%0A        count: 3%0A      %7D,%0A    %7D%0A  %7D%0A%7D%0A%0A
 app.get(
@@ -297,21 +297,24 @@
 t('/api/
-hello
+cash/:id
 ', (req,
@@ -317,17 +317,16 @@
 req, res
-p
 ) =%3E %7B%0A 
@@ -334,44 +334,119 @@
 cons
-ole.log('hello')%0A  resp.send('hello'
+t csh = cash%5Breq.params.id%5D%0A  if (csh === undefined) %7B%0A    res.status(400).send('Not found')%0A  %7D%0A  res.json(csh
 )%0A%7D)

add GET /api/cash/:id