rest.dcgi - geomyidae - A small C-based gopherd.
 (HTM) git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (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