Added background list
This commit is contained in:
@@ -360,6 +360,12 @@ app.delete("/trigger/api/themes", async (req, res) => {
|
||||
conn.end();
|
||||
});
|
||||
|
||||
app.get("/trigger/api/backgrounds", async (req, res) => {
|
||||
fs.readdir("../TriggerFrontend/public/backgrounds", (err, files) => {
|
||||
res.status(200).send(files);
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/trigger/api/categories", async (req, res) => {
|
||||
const conn = await pool.getConnection();
|
||||
const query = "SELECT * from trigger_database.linkCategories;";
|
||||
|
||||
Reference in New Issue
Block a user