Server counterpart to mage-admin
npm install --save mage-module-admin
lib/modules/admin/index.ts
import {
AbstractAdminModule
} from 'mage-module-admin'
class AdminModule extends AbstractAdminModule {
}
export default new AdminModule()
This will automatically create login
, logout
and registration
user commands; simply overload
those methods on the module if you wish to customize the behaviour.
MIT