All files / middleware overlander.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 85x 10x 1x 1x 1x      
export default function overlander(overland) {
  return async function overlander(ctx, next) {
    ctx.state.overland = overland;
    ctx.header['X-Powered-By'] = 'Overland';
    await next();
  };
};