Skip to content

Instantly share code, notes, and snippets.

View JonFranchi's full-sized avatar

Jon Franchi JonFranchi

  • R+P
  • Munich, Germany
View GitHub Profile
@JonFranchi
JonFranchi / gist:910252d44fe8cc9689443e97c855581f
Created June 25, 2025 12:38
Koa Dynamic Routing Options
const Koa = require('koa');
const Router = require('@koa/router');
const app = new Koa();
const router = new Router();
console.log('🚀 Koa Dynamic Routing Demo\n');
// =============================================================================
// SOLUTION 1: Static Route (your starting point)