Skip to content

Latest commit

 

History

History
executable file
·
37 lines (25 loc) · 603 Bytes

Readme.md

File metadata and controls

executable file
·
37 lines (25 loc) · 603 Bytes

mage-module-admin

Server counterpart to mage-admin

Installation

npm install --save mage-module-admin

Usage

Module creation

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.

License

MIT