UNPKG
rapidly
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
This helper can help you set your API routes/actions rapidly based on Express.js
EragonJ/Rapidly
rapidly
/
template
/
schema.js
19 lines
(18 loc)
•
315 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"create"
:
{
"method"
:
"POST"
,
"scope"
:
"private"
}
,
"read"
:
{
"method"
:
"GET"
,
"scope"
:
"public"
}
,
"update"
:
{
"method"
:
"POST"
,
"scope"
:
"private"
}
,
"delete"
:
{
"method"
:
"POST"
,
"scope"
:
"private"
}
}