sternenseemann / spacecookie

gopher library & server written in Haskell
https://sternenseemann.github.io/spacecookie/
GNU General Public License v3.0
47 stars 5 forks source link

Let users configure custom file type mappings #36

Open sternenseemann opened 3 years ago

sternenseemann commented 3 years ago

We have a map like this:

M.Map FilePath GopherFileType

The configuration option could look like this, allowing to override the mapping:

{
  "file-types": {
    "apng": "I"
  }
}

Also the default fallback should be configurable (currently File).

hyperrealgopher commented 3 years ago

https://github.com/hyperrealgopher/filesig

Just dropping this here in case it's useful.