<?php
/**
 * Notes:
 * User: shyir
 * DateTime: 2021/11/6 16:43
 */
$api = app ('Dingo\Api\Routing\Router');
$api->version ('v1', function ($api) {
    $api->group ([ 'prefix' => 'qiniu' ], function ($api){
        // 创建一个文件（包含路径）create a file
        $api->post('createFile', '\App\Http\Controllers\v1\Qiniu\FileController@createFile');
        // 检查文件是否存在 check if a file exists
        $api->get('fileExists', '\App\Http\Controllers\v1\Qiniu\FileController@fileExists');
        // 获取文档的最后修改时间 get timestamp
        $api->get('lastModified', '\App\Http\Controllers\v1\Qiniu\FileController@lastModified');