Skip to content

Controllers

Aleksey Ilyin edited this page May 26, 2023 · 3 revisions
Table of Contents

About controllers

About controllers

All controllers have their own name according to a given pattern: [layer]:[entity]{:[subentity]}:[action], where:
  1. layer - one of: auth, common, cup or api;
  2. entity - model name;
  3. subentity - sub model name;
  4. action - produced action (most often list, add, edit, delete repeating CRUD).

Example: api:entity, auth:logout, cup:user:list, cup:user:subscriber:add, common:user:register, common:catalog:list

Clone this wiki locally