All files / middlewares configs.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10    1x 7x 7x 5x 5x      
'use strict';
 
module.exports = (app) => {
    let configs = app.configs;
    return async (ctx, next) => {
        ctx.configs = configs;
        return await next();
    };
};