feat: slideout editor new new new!
This commit is contained in:
parent
c175a610da
commit
48ac1249c8
10 changed files with 482 additions and 112 deletions
8
bliss-cli/live-editor/route-editor.js
Normal file
8
bliss-cli/live-editor/route-editor.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function handler(req, res) {
|
||||
const sql = require("db")("bliss").sql;
|
||||
const sourceRoute = sql
|
||||
.prepare("SELECT * FROM routes WHERE id = ?")
|
||||
.get(req.params.id);
|
||||
if (!sourceRoute) return res.status(404).send("Route not found");
|
||||
res.render("inspector/route_editor", { sourceRoute });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue