Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

koa-router

How can I split my koa routes into separate files?

August 11, 2023 by Tarik

EDIT: I’ve updated the code examples below because the koa-router package on npm is no longer maintained. The Koa team has made an official fork of it under the name @koa/router. For anyone reading this, who is curious on how to do this in Koa 2.X: app.js import Koa from ‘koa’ import rootRouter from ‘./routes/root’ … Read more

Categories node.js Tags koa, koa-router, node.js Leave a comment

Koa router: How to get query string params?

May 15, 2023 by Tarik

According to the docs there should be a ctx.request.query that is the query string items represented as an object.

Categories javascript Tags javascript, koa, koa-router, node.js, query-string Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa