@design-edito/cli 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 0.0.79
1
+ 0.0.80
@@ -8,8 +8,8 @@ import { serve } from './www'
8
8
 
9
9
  // App setup
10
10
  const app = express()
11
- app.use(cors()) // [WIP] configure cors and allowed origins
12
- app.use(logger('dev')) // [WIP] configure logger for prod an all
11
+ app.use(cors())
12
+ app.use(logger('dev'))
13
13
  app.use(express.json())
14
14
  app.use(express.urlencoded({ extended: false }))
15
15
  app.use(cookieParser())
@@ -20,7 +20,7 @@ const PUBLIC = path.join(ROOT, 'public')
20
20
  app.use(express.static(PUBLIC))
21
21
 
22
22
  // Routes
23
- app.get('/', (req, res) => res.send({ data: true }))
23
+ app.get('/', (req, res) => { res.json({ data: true }) })
24
24
 
25
25
  // Start server
26
26
  serve(app)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/cli",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",