Skip to content

Session enabled API building

Compare
Choose a tag to compare
@skitsanos skitsanos released this 08 Aug 14:52
· 101 commits to master since this release

Added support for Session Manager middleware that works via HTTP headers.

To enable it, just add the following into your index.js:

const sessions = require('./sessions/index');
/*sessions.allowedResources = [
    ...sessions.allowedResources,
    '/echo'
];*/
sessions.init();

Uncomment lines to allow more API endpoints to be accessible without authentication.

Basic login, logout, and signup operations are added as well.