diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-12 22:06:46 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-12 22:07:07 +0100 |
commit | bf761bcb6dcc5288a86aa5e8c2b67df3f0df056b (patch) | |
tree | a2f4c0d47ed484bcca4daaaa11b4d862243019fe /src/config | |
parent | 1df10adfe7eb20bc460eeb0e5a8e242970642c58 (diff) | |
download | chawan-bf761bcb6dcc5288a86aa5e8c2b67df3f0df056b.tar.gz |
Move gopher to adapter/
Also, move default urimethodmap config to res.
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 79561c3a..eec0bffd 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -407,16 +407,7 @@ proc getMimeTypes*(config: Config): MimeTypes = return DefaultGuess return mimeTypes -const DefaultURIMethodMap = parseURIMethodMap(""" -finger: cgi-bin:cha-finger -gemini: cgi-bin:gmifetch?%s -about: cgi-bin:about -data: cgi-bin:data -file: cgi-bin:file?%s -ftp: cgi-bin:ftp?%s -sftp: cgi-bin:sftp?%s -ftps: cgi-bin:ftps?%s -""") +const DefaultURIMethodMap = parseURIMethodMap(staticRead"res/urimethodmap") proc getURIMethodMap*(config: Config): URIMethodMap = let configDir = getConfigDir() / "chawan" #TODO store this in config? |