How to use the koa.res.api function in koa

To help you get started, we’ve selected a few koa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github moajs / moa2 / app / middlewares / api.js View on Github external
/*!
 * Moajs Middle
 * Copyright(c) 2015-2019 Alfred Sang 
 * MIT Licensed
 */

const api = require('koa.res.api')

// 检查用户会话
module.exports = api()

koa

Koa web app framework

MIT
Latest version published 7 months ago

Package Health Score

93 / 100
Full package analysis