审查视图

1  
邓超 authored
1 2 3
<?php

1  
邓超 authored
4 5 6
/**
 * todo::只有post请求
 */
1  
邓超 authored
7
return [
1  
邓超 authored
8
1  
邓超 authored
9
    '/'  =>  [\Controller\Test::class, 'home'],
1  
邓超 authored
10
1  
邓超 authored
11
    // 登录操作
1  
邓超 authored
12
    'login' =>  [\Controller\Login::class, 'login'],
1  
邓超 authored
13 14
    // 邮件列表
    'lists' =>  [\Controller\Home::class, 'lists'],
1  
邓超 authored
15 16
    // 邮件详情
    'info' =>  [\Controller\Home::class, 'info'],
1  
邓超 authored
17
//    邮件文件夹
1  
邓超 authored
18
    'folder' =>  [\Controller\Folder::class, 'lists'],
1  
邓超 authored
19
//    创建文件夹
1  
邓超 authored
20
    'folder/create' =>  [\Controller\Folder::class, 'create'],
1  
邓超 authored
21
//    重命名文件夹
1  
邓超 authored
22
    'folder/rename' =>  [\Controller\Folder::class, 'rename'],
1  
邓超 authored
23
//    删除文件夹
1  
邓超 authored
24
    'folder/delete' =>  [\Controller\Folder::class, 'delete'],
1  
邓超 authored
25
//    发送邮件
1  
邓超 authored
26
    'send' =>  [\Controller\Home::class, 'send_mail'],
1  
邓超 authored
27
//    同步请求
1  
邓超 authored
28
    'sync' =>  [\Controller\Home::class, 'sync'],
1  
邓超 authored
29 30
//    标记为已读
    'seen_2_unseen' =>  [\Controller\Home::class, 'seen_2_unseen'],
1  
邓超 authored
31
//    标记为已回复/未回复
1  
邓超 authored
32
    'answered_2_unanswered' =>  [\Controller\Home::class, 'answered_2_unanswered'],
1  
邓超 authored
33 34
    // 邮件移动文件夹
    'move' =>  [\Controller\Home::class, 'move'],
1  
邓超 authored
35 36
    // 检查邮箱状态
    'check' =>  [\Controller\Home::class, 'check']
1  
邓超 authored
37 38 39


1  
邓超 authored
40 41 42 43

];

1  
邓超 authored
44