diff options
author | 2023-01-23 10:28:04 -0800 | |
---|---|---|
committer | 2023-01-23 10:28:04 -0800 | |
commit | 5f327a458f6488d053815621cd1a5154f1ce76c0 (patch) | |
tree | 6856030c5ebec8581ce417c5c4e62e07a4346387 /config.go | |
parent | 86218534c831b3fc6fdfb98f5ad334262d7060ae (diff) | |
download | sally-5f327a458f6488d053815621cd1a5154f1ce76c0.tar.gz sally-5f327a458f6488d053815621cd1a5154f1ce76c0.tar.zst sally-5f327a458f6488d053815621cd1a5154f1ce76c0.zip |
Drop httprouter dependency (#71)
This drops the third-party HTTP router dependency.
This dependency wasn't strictly necessary
since our routing needs are quite basic:
- `/$name` and `/$name/*` for all registered packages
- `/` for root
This is easily accomplished with `http.ServeMux`:
- register `/$name` and `/$name/`.
The latter will receive all subpackage requests.
- register `/` and reject anything that isn't for exactly `/`.
Diffstat (limited to 'config.go')
0 files changed, 0 insertions, 0 deletions