mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 06:12:03 +03: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
15 lines
344 B
JavaScript
15 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;
|
|
}
|
|
};
|