Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import Router from 'koa-router'
import publicRouter from './public.js'
import surveyRouter from'./survey.js'
const mainRouter = new Router()
const nestedRoutes = [publicRouter, surveyRouter]
for (const router of nestedRoutes) {
mainRouter.use(router.routes())
mainRouter.use(router.allowedMethods())
}
export default mainRouter