microwizard
Version:
A fast and stable microservice framework, mostly compatible with senecas user API
18 lines (15 loc) • 428 B
JavaScript
;
import controller from '../controllers/authorize.js';
// hapi style validations you can do that on your own
// import validate from '../validations/authorize.js';
export default (() => [
{
method: 'GET',
path: '/me',
config: {
// validate: validate.me,
handler: controller.me,
auth: { mode: 'try' } // use try when realizing a login itself that has no session yet
}
}
])();