Summary
Add a port lookup at app/api/routes-f/port/route.ts. Look up service info for well-known TCP/UDP ports.
Requirements
- GET ?port=80 returns { port, protocol, service, description, references }
- GET ?service=ssh returns { port, protocol, service, description }
- Bundle ~150 well-known ports inside folder (HTTP, HTTPS, SSH, FTP, SMTP, DNS, DHCP, etc.)
- Some services use both TCP and UDP
- Reject port out of range with 400
- Tests cover common ports, both directions, dual-protocol services
Scope Constraint - READ BEFORE STARTING
All files for this task must live inside app/api/routes-f/. This includes the route handler, helpers/utilities, types, and tests. Do NOT modify, import from, or add files to lib/, utils/, types/, components/, or anywhere else outside app/api/routes-f/. If you need shared logic, duplicate it inside your subfolder. Keeping everything scoped to this folder is intentional - it keeps these tasks independent and mergeable in any order.
Summary
Add a port lookup at app/api/routes-f/port/route.ts. Look up service info for well-known TCP/UDP ports.
Requirements
Scope Constraint - READ BEFORE STARTING
All files for this task must live inside app/api/routes-f/. This includes the route handler, helpers/utilities, types, and tests. Do NOT modify, import from, or add files to lib/, utils/, types/, components/, or anywhere else outside app/api/routes-f/. If you need shared logic, duplicate it inside your subfolder. Keeping everything scoped to this folder is intentional - it keeps these tasks independent and mergeable in any order.