rest.dcgi - geomyidae - a small C-based gopherd (mirror)
HTML git clone git://git.codemadness.org/geomyidae
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
rest.dcgi (248B)
---
1 #!/bin/sh
2 #
3 # Simple gopher REST interpretation.
4 #
5
6 if [ -n "$2" ];
7 then
8 case "$2" in
9 /articles*)
10 printf "Article 1\n";
11 printf "Article 2\n";
12 ;;
13 /read*)
14 printf "Read me!\n";
15 ;;
16 /write*)
17 printf "Write me!\n";
18 ;;
19 *)
20 ;;
21 esac
22 fi
23