- 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) |
||
---|---|---|
cmd | ||
docs | ||
internal | ||
pkg/asinfo | ||
.gitignore | ||
.golangci.yml | ||
CLAUDE.md | ||
go.mod | ||
go.sum | ||
Makefile |