审查视图

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'],
x  
邓超 authored
15 16
    // 这个是单独处理的 aicc那边的应用
    'v2/lists' =>  [\Controller\v2\Home::class, 'lists'],
邓超 authored
17 18
    // 黑格专用路由
    'fob/lists' =>  [\Controller\fob_ai\MailList::class, 'lists'],
邓超 authored
19
    'fob/count' =>  [\Controller\fob_ai\MailList::class, 'count'],// 统计数量
邓超 authored
20
1  
邓超 authored
21 22
    // 邮件详情
    'info' =>  [\Controller\Home::class, 'info'],
1  
邓超 authored
23
//    邮件文件夹
1  
邓超 authored
24
    'folder' =>  [\Controller\Folder::class, 'lists'],
1  
邓超 authored
25
//    创建文件夹
1  
邓超 authored
26
    'folder/create' =>  [\Controller\Folder::class, 'create'],
1  
邓超 authored
27
//    重命名文件夹
1  
邓超 authored
28
    'folder/rename' =>  [\Controller\Folder::class, 'rename'],
1  
邓超 authored
29
//    删除文件夹
1  
邓超 authored
30
    'folder/delete' =>  [\Controller\Folder::class, 'delete'],
1  
邓超 authored
31
//    发送邮件
1  
邓超 authored
32
    'send' =>  [\Controller\Home::class, 'send_mail'],
1  
邓超 authored
33
//    同步请求
1  
邓超 authored
34
    'sync' =>  [\Controller\Home::class, 'sync'],
邓超 authored
35 36
    // v2 版本的
    'v2/sync' =>  [\Controller\v2\Home::class, 'sync'],
1  
邓超 authored
37 38
//    标记为已读
    'seen_2_unseen' =>  [\Controller\Home::class, 'seen_2_unseen'],
1  
邓超 authored
39
//    标记为已回复/未回复
1  
邓超 authored
40
    'answered_2_unanswered' =>  [\Controller\Home::class, 'answered_2_unanswered'],
邓超 authored
41 42

    'star_2_unstar' =>  [\Controller\Home::class, 'star_2_unstar'],
1  
邓超 authored
43 44
    // 邮件移动文件夹
    'move' =>  [\Controller\Home::class, 'move'],
邓超 authored
45 46
    // 复制邮件
    'copy' =>  [\Controller\Home::class, 'copy'],
邓超 authored
47 48
    // 清除邮件
    'expunge' =>  [\Controller\Home::class, 'expunge'],
1  
邓超 authored
49
    // 检查邮箱状态
x  
邓超 authored
50
    'check' =>  [\Controller\Home::class, 'check'],
1  
邓超 authored
51
x  
邓超 authored
52 53
    // 发送任务
    'job'   =>  [\Controller\Job::class, 'index'],
x  
邓超 authored
54 55 56 57
    // 暂停任务
    'job/stop'   =>  [\Controller\Job::class, 'stop'],
    // 开始任务
    'job/start'   =>  [\Controller\Job::class, 'start'],
58 59
    // 任务详情
    'job/detail' => [\Controller\Job::class, 'jobDetail'],
1  
邓超 authored
60
x  
邓超 authored
61 62 63
    // 上传图片
    'upload/image'  =>  [\Controller\Upload::class, 'image']
1  
邓超 authored
64
1  
邓超 authored
65 66 67 68

];

1  
邓超 authored
69