2026-08-03 01:24:54 -04:00
|
|
|
function handler(req, res) {
|
|
|
|
|
const sql = require("db")("bliss").sql;
|
2026-08-06 16:37:42 -04:00
|
|
|
const kind = "route";
|
|
|
|
|
const artifact = sql.prepare("SELECT * FROM routes WHERE id = ?").get(req.params.id);
|
|
|
|
|
if (!artifact) return res.status(404).send("Route not found");
|
|
|
|
|
res.render("inspector/artifact_editor", { kind, artifact });
|
2026-08-03 01:24:54 -04:00
|
|
|
}
|