Build a blog with Areto Framework

Administration module

Easily develop and manage the different parts of an application using modules.

Blog's administration module

Create the module/admin directory in the root of application. File structure within a module can be equal to the structure of application files. In fact, a module contains a sub application. A module can have its own configuration, inherit or create components that contain child modules.

Append the modules section with the admin module in the application configuration. Now all administrative actions will be available at /admin/{controller}/{action}.

config/default.js

...
module.exports = {
  ...
  modules:  {
    'admin': {}
  },
  ...
};