This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
OlderNewer