Skip to content
Permalink
f33738ea1d
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
17 lines (12 sloc) 398 Bytes
'use strict'
const Router = require('koa-router')
const router = new Router()
const UserController = require('./controllers/userController')
const QuestionController = require('./controllers/questionController')
router.get('/', async ctx => {
ctx.body = UserController.hello()
})
router.get('/questions', async ctx => {
ctx.body = QuestionController.showExample()
})
module.exports = router