route.php 841 字节
<?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'],
//    邮件文件夹
    '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'],




];