mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
1126997244
refs #9865 - small refactoring to make both session and admin api key handling similar - admin api key authentication is still disabled, but easy to enable - added proof test how to authenticate using admin api keys
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
module.exports = {
|
|
// @TODO: expose files/units and not functions of units
|
|
get createSession() {
|
|
return require('./middleware').createSession;
|
|
},
|
|
|
|
get destroySession() {
|
|
return require('./middleware').destroySession;
|
|
},
|
|
|
|
get authenticate() {
|
|
return require('./middleware').authenticate;
|
|
}
|
|
};
|