UNPKG
koa2-boilerplate-plus
Version:
latest (1.0.0)
1.0.0
Enhanced koa2 boilerplate
github.com/superalsrk/koa2-boilerplate
superalsrk/koa2-boilerplate
koa2-boilerplate-plus
/
src
/
middleware
/
index.js
12 lines
(10 loc)
•
198 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
import
compose
from
'koa-compose'
;
import
checkauth
from
'./checkauth'
;
export
default
function
middleware
(
) {
return
compose
( [
checkauth
() ] ) }