route.php
1.2 KB
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
<?php
/**
* todo::只有post请求
*/
return [
/**
* home
* @see \Controller\Test::a()
*/
'/' => [\Controller\Test::class, 'a'],
't' => [\Controller\Test::class, 'home'],
// 登录操作
'login' => [\Controller\Login::class, 'login'],
// 邮件列表
'lists' => [\Controller\Home::class, 'lists'],
// 邮件详情
'info' => [\Controller\Home::class, 'info'],
// 邮件文件夹
'folder' => [\Controller\Folder::class, 'lists'],
// 创建文件夹
'folder/create' => [\Controller\Folder::class, 'create'],
// 重命名文件夹
'folder/rename' => [\Controller\Folder::class, 'rename'],
// 删除文件夹
'folder/delete' => [\Controller\Folder::class, 'delete'],
// 发送邮件
'send' => [\Controller\Home::class, 'send_mail'],
// 同步请求
'sync' => [\Controller\Home::class, 'sync'],
// 标记为已读
'seen_2_unseen' => [\Controller\Home::class, 'seen_2_unseen'],
// 标记为已回复/未回复
'answered_2_unanswered' => [\Controller\Home::class, 'seen_2_unseen'],
// 邮件移动文件夹
'move' => [\Controller\Home::class, 'move'],
// 检查邮箱状态
'check' => [\Controller\Home::class, 'check']
];