-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.php
76 lines (65 loc) · 3.79 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
declare(strict_types=1);
$router->get("/contact", "CRM\Contact\ContactController::getAll");
$router->post("/contact", "CRM\Contact\ContactController::insert");
$router->group("/contact", function ($router) {
$router->get("/{id:number}", "CRM\Contact\ContactController::get");
$router->post("/{id:number}", "CRM\Contact\ContactController::update");
$router->delete("/{id:number}", "CRM\Contact\ContactController::delete");
});
$router->get("/contact-status", "CRM\ContactStatus\ContactStatusController::getAll");
$router->post("/contact-status", "CRM\ContactStatus\ContactStatusController::insert");
$router->group("/contact-status", function ($router) {
$router->get("/{id:number}", "CRM\ContactStatus\ContactStatusController::get");
$router->post("/{id:number}", "CRM\ContactStatus\ContactStatusController::update");
$router->delete("/{id:number}", "CRM\ContactStatus\ContactStatusController::delete");
});
$router->get("/notes", "CRM\Notes\NotesController::getAll");
$router->post("/notes", "CRM\Notes\NotesController::insert");
$router->group("/notes", function ($router) {
$router->get("/{id:number}", "CRM\Notes\NotesController::get");
$router->post("/{id:number}", "CRM\Notes\NotesController::update");
$router->delete("/{id:number}", "CRM\Notes\NotesController::delete");
});
$router->get("/roles", "CRM\Roles\RolesController::getAll");
$router->post("/roles", "CRM\Roles\RolesController::insert");
$router->group("/roles", function ($router) {
$router->get("/{id:number}", "CRM\Roles\RolesController::get");
$router->post("/{id:number}", "CRM\Roles\RolesController::update");
$router->delete("/{id:number}", "CRM\Roles\RolesController::delete");
});
$router->get("/task-status", "CRM\TaskStatus\TaskStatusController::getAll");
$router->post("/task-status", "CRM\TaskStatus\TaskStatusController::insert");
$router->group("/task-status", function ($router) {
$router->get("/{id:number}", "CRM\TaskStatus\TaskStatusController::get");
$router->post("/{id:number}", "CRM\TaskStatus\TaskStatusController::update");
$router->delete("/{id:number}", "CRM\TaskStatus\TaskStatusController::delete");
});
$router->get("/todo-desc", "CRM\TodoDesc\TodoDescController::getAll");
$router->post("/todo-desc", "CRM\TodoDesc\TodoDescController::insert");
$router->group("/todo-desc", function ($router) {
$router->get("/{id:number}", "CRM\TodoDesc\TodoDescController::get");
$router->post("/{id:number}", "CRM\TodoDesc\TodoDescController::update");
$router->delete("/{id:number}", "CRM\TodoDesc\TodoDescController::delete");
});
$router->get("/todo-type", "CRM\TodoType\TodoTypeController::getAll");
$router->post("/todo-type", "CRM\TodoType\TodoTypeController::insert");
$router->group("/todo-type", function ($router) {
$router->get("/{id:number}", "CRM\TodoType\TodoTypeController::get");
$router->post("/{id:number}", "CRM\TodoType\TodoTypeController::update");
$router->delete("/{id:number}", "CRM\TodoType\TodoTypeController::delete");
});
$router->get("/user-status", "CRM\UserStatus\UserStatusController::getAll");
$router->post("/user-status", "CRM\UserStatus\UserStatusController::insert");
$router->group("/user-status", function ($router) {
$router->get("/{id:number}", "CRM\UserStatus\UserStatusController::get");
$router->post("/{id:number}", "CRM\UserStatus\UserStatusController::update");
$router->delete("/{id:number}", "CRM\UserStatus\UserStatusController::delete");
});
$router->get("/users", "CRM\Users\UsersController::getAll");
$router->post("/users", "CRM\Users\UsersController::insert");
$router->group("/users", function ($router) {
$router->get("/{id:number}", "CRM\Users\UsersController::get");
$router->post("/{id:number}", "CRM\Users\UsersController::update");
$router->delete("/{id:number}", "CRM\Users\UsersController::delete");
});