From 3a2f938cfdfbd130db51ae64acf67e66b955a27f Mon Sep 17 00:00:00 2001 From: Autumn Date: Tue, 12 May 2026 19:36:17 +0100 Subject: [pages] added basic actionss route --- src/routes/dashboard.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/routes/dashboard.ts') diff --git a/src/routes/dashboard.ts b/src/routes/dashboard.ts index ee49a12..a4cf20a 100644 --- a/src/routes/dashboard.ts +++ b/src/routes/dashboard.ts @@ -5,6 +5,7 @@ // imports import { Router } from "express" import allDevices from "@lib/config/devices.ts" +import allActions from "@lib/config/actions.ts" // setup router const router = Router() @@ -21,5 +22,12 @@ router.get("/devices", (_, res) => { }) }) +// all actions +router.get("/actions", (_, res) => { + res.render("pages/dashboard/actions", { + actions: allActions + }) +}) + // export router export default router -- cgit v1.3