Added validation buttons per row in datasheet UI; need to configure correct validations per data field

This commit is contained in:
efarooqui
2020-08-21 09:35:20 -07:00
parent fba74d8e9c
commit 1971128b18
3 changed files with 23 additions and 25 deletions

View File

@@ -58,6 +58,17 @@ export default ({ config, controller }) => {
)
})
// api.get('/:sheet/:tab/:resource/validate', (req, res) => {
// const { sheet, tab, resource } = req.params
// controller
// .retrieve(sheet, tab, resource)
// .then(data => res.json(data))
// .catch(err =>
// res.status(err.status || 404)
// .send({ error: err.message })
// )
// })
// ERROR routes. Note that it is important that these come AFTER routes
// like /update, so that the regex does not greedily match these routes.