aboutsummaryrefslogtreecommitdiff
path: root/rootfs/srv/http
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
commit612a0afa63144aae338a51c9206a589d4b8fdd65 (patch)
tree679e6676d9ce4b56996874bd5782764da221280a /rootfs/srv/http
parent70623600744cab314baf1ccc912134456ffe565d (diff)
WIP web server
Diffstat (limited to 'rootfs/srv/http')
-rw-r--r--rootfs/srv/http/index.html10
-rwxr-xr-xrootfs/srv/http/off2
-rwxr-xr-xrootfs/srv/http/on2
3 files changed, 14 insertions, 0 deletions
diff --git a/rootfs/srv/http/index.html b/rootfs/srv/http/index.html
new file mode 100644
index 0000000..f60b829
--- /dev/null
+++ b/rootfs/srv/http/index.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset='utf-8'>
+ <title>Hello world!</title>
+</head>
+<body>
+ <p>Turn leds <a href="/on">on</a> or <a href="/off">off</a></p>
+</body>
+</html>
diff --git a/rootfs/srv/http/off b/rootfs/srv/http/off
new file mode 100755
index 0000000..e70be2d
--- /dev/null
+++ b/rootfs/srv/http/off
@@ -0,0 +1,2 @@
+#!/bin/sh
+leds 0
diff --git a/rootfs/srv/http/on b/rootfs/srv/http/on
new file mode 100755
index 0000000..0da06b0
--- /dev/null
+++ b/rootfs/srv/http/on
@@ -0,0 +1,2 @@
+#!/bin/sh
+leds 1