-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
executable file
·111 lines (93 loc) · 3.56 KB
/
routes.php
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
if (! defined ( 'SECURE' ))
exit ( 'Hello, [email protected]' );
/**
* ROUTES
* yang bawah menimpa yang diatas
* bisa kaya $routes['([a-z]+)'] = '$1';
* @author DAMS
*/
# Core Routes
$routes['404'] = 'core:missing';
$routes['503'] = 'core:off';
$routes['nojs'] = 'core:nojs';
#$routes['default'] = 'core:index';
#fitur profiles ke method index
$routes['^[a-zA-Z0-9_]{6,20}$'] = 'profiles:index';
#HQ
$routes['^HQ|hq$'] = 'profiles:index';
#mobile ( lagi riset sementara di blog inject css mobile display none untuk yang gak perlu)
#$routes['m/blog'] = 'mobile:blog';
$routes['blog'] = 'blog:index';
$routes['home'] = 'site:index';
$routes['secure'] = 'secure:index';
$routes['signup'] = 'site:signup';
$routes['login'] = 'login:index';
$routes['terms'] = 'site:terms';
$routes['privacy'] = 'site:privacy';
$routes['welcome'] = 'site:welcome';
$routes['why'] = 'site:why';
$routes['allstars'] = 'site:allstars';
$routes['reset'] = 'site:reset';
$routes['default'] = 'site:index';
$routes['verify'] = 'verify:index';
$routes['^verify/[a-zA-Z0-9_]{6,20}$'] = 'verify:profile';
#edit
$routes['logout'] = 'site:logout';
#$routes['edit/profile'] = 'edit:profile';
#$routes['edit/product'] = 'edit:product';
$routes['dashboard'] = 'editv2:dashboard';
$routes['edit/products'] = 'editv2:ListProducts';
$routes['edit/profile'] = 'editv2:EditProfile';
$routes['edit/product'] = 'editv2:Products';
$routes['edit/frontbox'] = 'editv2:EditFrontBox';
$routes['edit/connections'] = 'editv2:EditConnections';
$routes['beta/article'] = 'editv2:article';
#products
$routes['product'] = 'products:single';
$routes['products'] = 'products:all';
$routes['^products/[a-zA-Z]{1,20}$'] = 'products:all';
$routes['^products/[a-zA-Z]{1,20}/[a-zA-Z]{1,20}$'] = 'products:all';
#social
$routes['social/follow'] = 'social:follow';
$routes['social/unfollow'] = 'social:unfollow';
#social
$routes['messages'] = 'messages:all';
#help
$routes['help'] = 'help:index';
#comments & mentions
if (config('features/comments/core')) {
$routes['comments'] = 'comments:index';
if (config('features/comments/mentions')) {
$routes['mentions'] = 'mentions:index';
}
}
#admin Routes
$routes['admin'] = 'admin:index';
$routes['admin/reset'] = 'admin:reset';
$routes['admin/blog'] = 'admin:blog';
$routes['admin/newpost'] = 'admin:newpost';
$routes['admin/unverify'] = 'admin:listverified';
$routes['admin/verify'] = 'admin:listunverified';
$routes['admin/useredit'] = 'admin:useredit';
$routes['admin/groups'] = 'admin:grouplist';
#ajax Routes
$routes['ajax/refresh'] = 'ajax:getProductDiff';
$routes['ajax/analytics/push'] = 'ajax:setAnalytics';
$routes['ajax/social/pull/points'] = 'ajax:getSocialPoints';
$routes['ajax/social/pull/facebook'] = 'ajax:getSocialFacebook';
$routes['ajax/social/pull/yahoo'] = 'ajax:getSocialYahoo';
$routes['ajax/social/pull/twitter'] = 'ajax:getSocialTwitter';
$routes['ajax/social/pull/search'] = 'ajax:getSocialSearch';
$routes['ajax/social/pull/trends'] = 'ajax:getGoogleTrend';
#$routes['area51/([a-zA-Z0-9_]+)'] = 'test:$1';
$routes['area51/home'] = 'test:home';
$routes['area51/hello'] = 'test:hello';
$routes['development'] = 'test:github';
$routes['beta/insights'] = 'test:getAnalytics';
$routes['area51/flush'] = 'test:flush';
$routes['area51/groups'] = 'test:groups';
#$routes['area51/analytics'] = 'test:analytics';
#ok lanjut milih folder blog untuk skala blilitas tp class ada dua ? sebenernya satu tp tiap didalam core masak ada classnya ? ntar banyak filenya
#kenapa ga di jadiin method aja ?
?>