Skip to content

Commit 8b4d689

Browse files
authored
Add files via upload
添加附件上传的路由
1 parent 77754a9 commit 8b4d689

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

routes/index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
use App\Controller\Base;
88
use App\Controller\Note;
99
use App\Controller\Tag;
10+
use App\Controller\Upload;
11+
use App\Controller\Cache;
1012

1113
return function (Mix\Vega\Engine $vega) {
1214
$vega->handle('/hello', [new Hello(), 'index'])->methods('GET');
@@ -42,5 +44,6 @@
4244
$vega->handle('/api/tag/getSyncTags', [new Tag(), 'getSyncTags'])->methods('GET','POST');
4345
$vega->handle('/api/tag/deleteTag', [new Tag(), 'deleteTag'])->methods('GET','POST');
4446

45-
47+
$vega->handle('/api/file/uploadAttach', [new Upload(), 'uploadAttach'])->methods('GET','POST');
48+
4649
};

0 commit comments

Comments
 (0)