refactor: Migrate all API routes to src/features/ TypeScript modules #1

Merged
rene merged 1 commits from refactor-backend into main 2026-04-29 08:06:03 +00:00
Owner

Summary

This PR migrates all legacy API routes from the monolithic server.js into dedicated TypeScript feature modules under src/features/, served via the modern Fastify API layer (src/api/server.ts).

Migrated Features (13 modules)

  • BGP Communities -> src/features/bgp-communities/
    • IRR Audit -> src/features/irr-audit/
    • AS-SET Expander -> src/features/asset-expand/
    • RPKI/Routing History -> src/features/rpki-history/
    • AS-PATH Visualizer -> src/features/aspath/
    • Looking Glass -> src/features/looking-glass/
    • IXP Peering Matrix -> src/features/ix-matrix/
    • Prefix Changes -> src/features/prefix-changes/
    • Submarine Cables -> src/features/submarine-cables/
    • Global Infra Map -> src/features/global-infra/
    • Changelog API -> src/features/changelog/
    • bio-rd RIB -> src/features/rib/
    • Hijack Subscribe -> src/features/hijack-subscribe/

Stats

  • server.js: -580 lines removed
    • 215/215 tests passing
    • Rollback: server.js.backup-v0.7.0
## Summary This PR migrates all legacy API routes from the monolithic `server.js` into dedicated TypeScript feature modules under `src/features/`, served via the modern Fastify API layer (`src/api/server.ts`). ## Migrated Features (13 modules) - BGP Communities -> `src/features/bgp-communities/` - - IRR Audit -> `src/features/irr-audit/` - - AS-SET Expander -> `src/features/asset-expand/` - - RPKI/Routing History -> `src/features/rpki-history/` - - AS-PATH Visualizer -> `src/features/aspath/` - - Looking Glass -> `src/features/looking-glass/` - - IXP Peering Matrix -> `src/features/ix-matrix/` - - Prefix Changes -> `src/features/prefix-changes/` - - Submarine Cables -> `src/features/submarine-cables/` - - Global Infra Map -> `src/features/global-infra/` - - Changelog API -> `src/features/changelog/` - - bio-rd RIB -> `src/features/rib/` - - Hijack Subscribe -> `src/features/hijack-subscribe/` ## Stats - server.js: -580 lines removed - - 215/215 tests passing - - Rollback: server.js.backup-v0.7.0
rene added 1 commit 2026-04-29 07:56:10 +00:00
rene merged commit f1b1a3a940 into main 2026-04-29 08:06:03 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rene/PeerCortex#1
No description provided.