Skip to content

koa-grace/koa-grace-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-grace-session

koa-grace session中间件

Install

$ npm install koa-grace-session --save

Usage

session(app, options)
  • app: {Object} koa instance.
  • options: {Object}

app.js

'use strict';

var koa = require('koa');
var router = require('koa-grace-router');
var session = require('..');

var app = koa();

// 配置api
app.use(session(app));

app.use(router(app, {
  root: './example/controller',
  domain: '127.0.0.1'
}));

app.listen(3000, function() {
  console.log('Listening on 3000!');
});

Test

npm test

License

MIT

About

koa-grace session服务中间件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published