forked from Restfulness/Restfulness-core-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
55 lines (55 loc) · 1.34 KB
/
config.json
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
{
"host": "0.0.0.0",
"routes": {
"user": {
"login": "/user/login",
"signup": "/user/signup",
"forget_password": "/user/password/forget",
"verify_code": "/user/password/verify",
"reset_password": "/user/password/reset",
"publicity": "/user/publicity",
"activity_list": "/user/activity",
"profile": "/user/profile"
},
"links":{
"main": "/links",
"get_id": "/links/<int:id>",
"by_category": "/links/category",
"by_category_id": "/links/category/<int:id>",
"by_pattern": "/links/search",
"by_pattern_string": "/links/search/<string:pattern>",
"update_category": "/links/<int:id>/category",
"by_user_id": "/user/<int:id>/links"
},
"categories": {
"main": "/categories",
"get_id": "/categories/<int:id>"
}
},
"database": {
"mysql": true,
"username": "test",
"password": "test",
"server": "db",
"db": "restfulness"
},
"smtp": {
"host": "your_host_address_here",
"port": 587,
"server_username": "your_username",
"server_password": "your_password"
},
"forget_password": {
"serializer_secret_key": "VERY_SECRET",
"validation_token_expire_seconds": 300,
"reset_password_token_expire_seconds": 300,
"reset_password_code_length": 8
},
"socializing": {
"user_publicity_default": true
},
"pagination": {
"maximum_links_per_page": 10,
"maximum_activities_per_page": 12
}
}