Create a NodeJS API with Koa and TypeScript - #4 - Extracting Routes and Config

459 views Feb 14, 2023

We have our small Koa server up and running, and life is - I'm sure you will agree - really rather splendid. However, we've done the bare minimum to get things off the ground. And that means we have stuff all over the shop. Well, all over one file, anyway. Let's extract out where possible. We will start by moving our route into its own separate directory, and file.