- Implement handleIPRedirect handler that looks up the prefix containing an IP
- Add /ip/{ip} route to routes.go
- Reuse existing GetASInfoForIP database method which returns prefix info
- Redirect to /prefix/<prefix> page with HTTP 303 See Other status
- Handle invalid IPs (400) and IPs with no route (404)
|
||
|---|---|---|
| .. | ||
| config | ||
| database | ||
| logger | ||
| metrics | ||
| ristypes | ||
| routewatch | ||
| server | ||
| streamer | ||
| templates | ||