Introduction
Introduction Statistics Contact Development Disclaimer Help
rest.dcgi - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.