@kenote/koa-session
Session plug-in based on Koa for Kenote.js.
Usage
index.ts
import { Module, ServerFactory } from '@kenote/core'
import { ServiceEngine } from '@kenote/koa'
import session from '@kenote/koa-session'
import redisStore from 'koa-redis'
@Module({
imports: [],
plugins: [
session({
store: redisStore(),
})
],
})
class AppModule {}
async bootstarp () {
let factory = await ServerFactory(new ServiceEngine()).create(AppModule)
factory.server.listen(4000)
}
MIT License.