This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathfiles.js
69 lines (68 loc) · 1.5 KB
/
files.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { chmodResource } from '../resources/files/chmod.js'
import { cpResource } from '../resources/files/cp.js'
import { flushResource } from '../resources/files/flush.js'
import { lsResource } from '../resources/files/ls.js'
import { mkdirResource } from '../resources/files/mkdir.js'
import { mvResource } from '../resources/files/mv.js'
import { readResource } from '../resources/files/read.js'
import { rmResource } from '../resources/files/rm.js'
import { statResource } from '../resources/files/stat.js'
import { touchResource } from '../resources/files/touch.js'
import { writeResource } from '../resources/files/write.js'
export default [
{
method: 'POST',
path: '/api/v0/files/chmod',
...chmodResource
},
{
method: 'POST',
path: '/api/v0/files/cp',
...cpResource
},
{
method: 'POST',
path: '/api/v0/files/flush',
...flushResource
},
{
method: 'POST',
path: '/api/v0/files/ls',
...lsResource
},
{
method: 'POST',
path: '/api/v0/files/mkdir',
...mkdirResource
},
{
method: 'POST',
path: '/api/v0/files/mv',
...mvResource
},
{
method: 'POST',
path: '/api/v0/files/read',
...readResource
},
{
method: 'POST',
path: '/api/v0/files/rm',
...rmResource
},
{
method: 'POST',
path: '/api/v0/files/stat',
...statResource
},
{
method: 'POST',
path: '/api/v0/files/touch',
...touchResource
},
{
method: 'POST',
path: '/api/v0/files/write',
...writeResource
}
]