diff options
Diffstat (limited to 'adapter/protocol/about.nim')
-rw-r--r-- | adapter/protocol/about.nim | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/adapter/protocol/about.nim b/adapter/protocol/about.nim deleted file mode 100644 index 4f6dc97b..00000000 --- a/adapter/protocol/about.nim +++ /dev/null @@ -1,20 +0,0 @@ -when NimMajor >= 2: - import std/envvars -else: - import std/os - -const chawan = staticRead"res/chawan.html" -const license = staticRead"res/license.md" - -template printPage(s, t: static string) = - stdout.write("Content-Type: " & t & "\n\n") - stdout.write(s) - -proc main() = - case getEnv("MAPPED_URI_PATH") - of "blank": printPage("", "text/plain") - of "chawan": printPage(chawan, "text/html") - of "license": printPage(license, "text/markdown") - else: stdout.write("Cha-Control: ConnectionError 4 about page not found") - -main() |