Review DEMO.
This commit is contained in:
+32
-8
@@ -1,13 +1,37 @@
|
|||||||
GET /ps {
|
GET /list/files {
|
||||||
ps -fax > @fifo:response/body
|
ls -la @value:request/params/path > @fifo:response/body
|
||||||
}
|
}
|
||||||
|
|
||||||
GET /ls {
|
GET /list/processes {
|
||||||
ls -la @value:request/params/path > @fifo:response/body
|
ps -aux > @fifo:response/body
|
||||||
}
|
}
|
||||||
|
|
||||||
GET / = index.html
|
GET /show/cpuinfo {
|
||||||
|
cat /proc/cpuinfo > @fifo:response/body
|
||||||
GET /cmdline {
|
}
|
||||||
cat /proc/cmdline > @fifo:response/body
|
|
||||||
|
GET /show/memory {
|
||||||
|
free -m > @fifo:response/body
|
||||||
|
}
|
||||||
|
|
||||||
|
GET /show/disk {
|
||||||
|
df -h > @fifo:response/body
|
||||||
|
}
|
||||||
|
|
||||||
|
GET /show/connections {
|
||||||
|
ss -pluton > @fifo:response/body
|
||||||
|
}
|
||||||
|
|
||||||
|
GET /show/mounts {
|
||||||
|
mount > @fifo:response/body
|
||||||
|
}
|
||||||
|
|
||||||
|
GET /tail/dmesg {
|
||||||
|
echo "text/plain" > @fifo:response/header/Content-Type
|
||||||
|
dmesg -w > @fifo:response/stream/lines
|
||||||
|
}
|
||||||
|
|
||||||
|
GET /tail/journal {
|
||||||
|
echo "text/plain" > @fifo:response/header/Content-Type
|
||||||
|
journalctl -f > @fifo:response/stream/lines
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user