forked from polis-community/polis-wl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver-routes.txt
169 lines (164 loc) · 6.05 KB
/
server-routes.txt
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
get "/api/v3/bid",
get "/api/v3/bidToPid",
get "/api/v3/changePlanWithCoupon",
get "/api/v3/comments",
get "/api/v3/comments/translations",
get "/api/v3/contexts",
get "/api/v3/conversations",
get "/api/v3/conversations/preload",
get "/api/v3/conversations/recent_activity",
get "/api/v3/conversations/recently_started",
get "/api/v3/conversationStats",
get "/api/v3/createPlanChangeCoupon_aiudhfaiodufy78sadtfiasdf",
get "/api/v3/dataExport",
get "/api/v3/dataExport/results",
get "/api/v3/domainWhitelist",
get "/api/v3/dummyButton",
get "/api/v3/einvites",
get "/api/v3/facebook/delete",
get "/api/v3/group_demographics",
get "/api/v3/launchPrep",
get "/api/v3/locations",
get "/api/v3/logMaxmindResponse",
get "/api/v3/lti_oauthv1_credentials",
get "/api/v3/LTI/conversation_assignment.xml",
get "/api/v3/LTI/setup_assignment.xml",
get "/api/v3/math/correlationMatrix",
get "/api/v3/math/pca",
get "/api/v3/math/pca2",
get "/api/v3/metadata",
get "/api/v3/metadata/answers",
get "/api/v3/metadata/choices",
get "/api/v3/metadata/questions",
get "/api/v3/nextComment",
get "/api/v3/notifications/subscribe",
get "/api/v3/notifications/unsubscribe",
get "/api/v3/participants",
get "/api/v3/participation",
get "/api/v3/participationInit",
get "/api/v3/ptptois",
get "/api/v3/reports",
get "/api/v3/snapshot",
get "/api/v3/testConnection",
get "/api/v3/testDatabase",
get "/api/v3/twitter_oauth_callback",
get "/api/v3/twitter_users",
get "/api/v3/twitterBtn",
get "/api/v3/users",
get "/api/v3/verify",
get "/api/v3/votes",
get "/api/v3/votes/famous",
get "/api/v3/votes/me",
get "/api/v3/xids",
get "/api/v3/zinvites/:zid",
post "/api/v3/auth/deregister",
post "/api/v3/auth/facebook",
post "/api/v3/auth/login",
post "/api/v3/auth/new",
post "/api/v3/auth/password",
post "/api/v3/auth/pwresettoken",
post "/api/v3/charge",
post "/api/v3/comments",
post "/api/v3/contexts",
post "/api/v3/contributors",
post "/api/v3/conversation/close",
post "/api/v3/conversation/reopen",
post "/api/v3/conversations",
post "/api/v3/convSubscriptions",
post "/api/v3/domainWhitelist",
post "/api/v3/einvites",
post "/api/v3/joinWithInvite",
post "/api/v3/LTI/conversation_assignment",
post "/api/v3/LTI/setup_assignment",
post "/api/v3/mathUpdate",
post "/api/v3/metadata/answers",
post "/api/v3/metadata/questions",
post "/api/v3/metrics",
post "/api/v3/notifyTeam",
post "/api/v3/participants",
post "/api/v3/ptptCommentMod",
post "/api/v3/query_participants_by_metadata",
post "/api/v3/reportCommentSelections",
post "/api/v3/reports",
post "/api/v3/reserve_conversation_id",
post "/api/v3/sendCreatedLinkToEmail",
post "/api/v3/sendEmailExportReady",
post "/api/v3/stars",
post "/api/v3/trashes",
post "/api/v3/tutorial",
post "/api/v3/upvotes",
post "/api/v3/users/invite",
post "/api/v3/votes",
post "/api/v3/xidWhitelist",
post "/api/v3/zinvites/:zid",
put "/api/v3/comments",
put "/api/v3/conversations",
put "/api/v3/participants_extended",
put "/api/v3/ptptois",
put "/api/v3/reports",
put "/api/v3/users",
delete "/api/v3/metadata/answers/:pmaid",
delete "/api/v3/metadata/questions/:pmqid",
get "/canvas_app_instructions.png",
get "/iim/:conversation_id",
get "/iip/:conversation_id",
get "/robots.txt",
get "/twitter_image",
get /.*\//, // ends in slash? redirect to non-slash version
get /^\/__webpack_hmr$/,
get /^\/.*embed.*js\/.*/, proxy);
get /^\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForConversation); // conversation view
get /^\/about$/, makeRedirectorTo("/home"));
get /^\/account(\/.*)?/, fetchIndexForAdminPage);
get /^\/bot(\/.*)?/, fetchIndexForAdminPage);
get /^\/bot\/install(\/.*)?/, fetchIndexForAdminPage);
get /^\/bot\/support(\/.*)?/, fetchIndexForAdminPage);
get /^\/cached\/.*/, proxy);
get /^\/canvas_setup_backup_instructions$/,
get /^\/company$/, fetchIndexForAdminPage);
get /^\/contrib(\/.*)?/, fetchIndexForAdminPage);
get /^\/conversation\/create(\/.*)?/, fetchIndexWithoutPreloadData);
get /^\/conversations(\/.*)?/, fetchIndexForAdminPage);
get /^\/createuser(\/.*)?/, fetchIndexForAdminPage);
get /^\/demo\/[0-9][0-9A-Za-z]+/, fetchIndexForConversation);
get /^\/demo$/, fetchIndexForAdminPage);
get /^\/dist\/admin_bundle.js$/,
get /^\/embed$/,
get /^\/embedPreprod$/,
get /^\/embedReport$/,
get /^\/embedReportPreprod$/,
get /^\/explore\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForConversation); // power view
get /^\/font\/.*/, proxy);
get /^\/gov(\/.*)?/, fetchIndexForAdminPage);
get /^\/hk/, fetchIndexWithoutPreloadData);
get /^\/hk\/new/, fetchIndexWithoutPreloadData);
get /^\/home(\/.*)?/, fetchIndexForAdminPage);
get /^\/inbox(\/.*)?$/, fetchIndexWithoutPreloadData);
get /^\/inboxApiTest/, fetchIndexWithoutPreloadData);
get /^\/integrate(\/.*)?/, fetchIndexForAdminPage);
get /^\/m\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForAdminPage);
get /^\/ot\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForConversation); // conversation view, one-time url
get /^\/other-conversations(\/.*)?/, fetchIndexForAdminPage);
get /^\/polis_site_id.*/,
get /^\/privacy$/, fetchIndexForAdminPage);
get /^\/pwreset.*/, fetchIndexForAdminPage);
get /^\/pwresetinit.*/, fetchIndexForAdminPage);
get /^\/report\/r?[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForReportPage);
get /^\/s\//, fetchIndexWithoutPreloadData);
get /^\/s\/CTE\/?$/,
get /^\/s$/, fetchIndexWithoutPreloadData);
get /^\/settings(\/.*)?$/, makeFetchIndexWithoutPreloadData());
get /^\/settings\/enterprise}.*$/, makeFetchIndexWithoutPreloadData());
get /^\/share\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForConversation); // share view
get /^\/signin(\/.*)?/, fetchIndexForAdminPage);
get /^\/signout(\/.*)?/, fetchIndexForAdminPage);
get /^\/summary\/[0-9][0-9A-Za-z]+(\/.*)?/, fetchIndexForConversation); // summary view
get /^\/thirdPartyCookieTestPt1\.html$/, fetchThirdPartyCookieTestPt1);
get /^\/thirdPartyCookieTestPt2\.html$/, fetchThirdPartyCookieTestPt2);
get /^\/tos$/, fetchIndexForAdminPage);
get /^\/cookies$/, fetchIndexForAdminPage);
get /^\/accessibility$/, fetchIndexForAdminPage);
get /^\/twitterAuthReturn(\/.*)?$/,
get /^\/user\/create(\/.*)?$/, fetchIndexWithoutPreloadData);
get /^\/user\/login(\/.*)?$/, fetchIndexWithoutPreloadData);
get /^\/user\/logout(\/.*)?$/, fetchIndexWithoutPreloadData);