wenzhixin / bootstrap-table-examples

Bootstrap table examples
https://examples.bootstrap-table.com/
MIT License
2.24k stars 1.62k forks source link

deployed version show json result indented #466

Closed albfan closed 1 year ago

albfan commented 2 years ago

Looks deployed version uses:

app.set('json spaces', 2)

diff --git i/server/app.js w/server/app.js
index d4b1a2d..dc49bd2 100644
--- i/server/app.js
+++ w/server/app.js
@@ -1,6 +1,7 @@
 const express = require('express')
 const app = express()

+app.set('json spaces', 2)
 app.get('/examples/:project/:func', require('./examples'))
 app.post('/examples/:project/:func', require('./examples'))

Should I open a PR to include it?. For example data makes sense to always return indented to inspect data structure

wenzhixin commented 1 year ago

After confirmation, this property is not set.