rest.dcgi - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log
Files
Refs
README
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