Skip to content
Snippets Groups Projects
Commit 62028aa3 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Pretty printing récup. données

parent bacca32c
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ server.get('/', function(req, res) {
server.get('/db/:table', function(req, res) {
knex.select().from(req.params.table).then(function(table) {
res.send(table);
res.write(JSON.stringify(table,null,2));
res.end();
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment