routewatch/internal/server
sneak af9ff258b1 Add /ip/<ip> route that redirects to prefix detail page
- 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)
2025-07-28 04:31:22 +02:00
..
handlers.go Add /ip/<ip> route that redirects to prefix detail page 2025-07-28 04:31:22 +02:00
middleware.go Add SQL query logging and performance improvements 2025-07-27 22:34:48 +02:00
routes.go Add /ip/<ip> route that redirects to prefix detail page 2025-07-28 04:31:22 +02:00
server.go Refactor server package: split handlers and routes into separate files 2025-07-28 04:00:12 +02:00