Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

koa wildcard route

router
  .get('/home', handleHome )
  .get('/:splat*', handleAllOtherRoutesController ); // <== wildcard
 
PREVIOUS NEXT
Tagged: #koa #wildcard #route
ADD COMMENT
Topic
Name
1+4 =