/
routes
161 lines (126 loc) · 7.43 KB
/
routes
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
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Import Secure routes
* / module:secure
GET /es-admin elasticsearch.ElasticSearchAdmin.index
GET /es-admin/ elasticsearch.ElasticSearchAdmin.index
# Home page
GET / Application.news
#Account
GET /users/? Users.users #Get a list of all users
POST /users/? Signup.signup_user
PUT /users/{<[0-9]+>userId} Users.updateUser
GET /users/{<[0-9]+>userId} Users.user #Get account info for a specific user
DELETE /users/{<[0-9]+>userId} Users.deleteUser #Delete a user
GET /users/{<[0-9]+>userId}/profile Users.profile
GET /users/{<[0-9]+>userId}/friends Users.friends
POST /users/{<[0-9]+>userId}/friends Users.requestFriends
DELETE /users/{<[0-9]+>userId}/friends Users.removeFriends
POST /users/{<[0-9]+>userId}/subscribe Subscriptions.addSubscription
DELETE /users/{<[0-9]+>userId}/subscribe Subscriptions.removeSubscription
GET /users/{<[0-9]+>userId}/requests Users.friendRequests
GET /users/{<[0-9]+>ownerId}/photos/? Photos.photos
GET /users/{<[0-9]+>userId}/posts/? Posts.posts #get all posts by a user
GET /users/{<[0-9]+>userId}/comments/? Comments.userComments #get all comments by a user
GET /users/{<[0-9]+>userId}/events/? Events.events #1 user's events
GET /testFriends Users.testFriends
#Skins
GET /public/stylesheets/main.css Skins.stylesheet
GET /changeSkin Skins.changeSkin
GET /editMySkin Skins.editMySkin
GET /sampleSkin Skins.sampleSkin
GET /changeBGImage Photos.changeBGImage
POST /skins/changeSkinToTemplate Skins.changeSkinToTemplate
POST /skins/editSkin Skins.editSkin
POST /skins/setBackgroundPhoto Skins.setBackgroundPhoto
# Threads
GET /threads Categories.listAll
GET /threads/{<[0-9]+>catId} Categories.listSingle
GET /threads/[0-9]+/{<[0-9]+>threadId} FThreads.listSingle
POST /threads/newCategory Categories.newCategory
POST /threads/deleteCategory Categories.deleteCategory
POST /threads/newThread FThreads.newThread
POST /threads/deleteThread FThreads.deleteThread
# Profile
GET /application.prev.gif staticFile:/public/images/prev.gif
GET /application.next.gif staticFile:/public/images/next.gif
GET /application.calendar.jpg staticFile:/public/images/calendar.gif
# Photos
GET /photos/? Photos.photos
POST /photos Photos.addPhoto
GET /photos/{<[0-9]+>photoId} Photos.getPhoto
GET /photos/setProfilePhoto Photos.setProfilePhoto
POST /photos/setProfilePhoto Photos.setProfilePhoto
GET /photos/{<[0-9]+>photoId}/delete Photos.removePhoto
GET /photos/setProfilePhotoPage Photos.setProfilePhotoPage
POST /photos/setProfilePhoto Photos.setProfilePhoto
POST /photos/addProfilePhoto Photos.addProfilePhoto
GET /photos/setGravatar Photos.setGravatar
# Profile Pic Editor
GET /profilePicEditor Photos.setProfilePhotoPage
# Thumbnails
GET /photos/120x120/{<[0-9]+>photoId} Thumbnails.get120x120
GET /photos/50x50/{<[0-9]+>photoId} Thumbnails.get50x50
GET /photos/30x30/{<[0-9]+>photoId} Thumbnails.get30x30
#Signup
GET /signup Signup.signup
GET /captcha Signup.captcha
# Messages
GET /messages Messages.inbox
GET /messages/createMessage Messages.createMessage
POST /messages Messages.sendMessage
GET /messages/{<[0-9]+>messageId} Messages.message
# Notes
GET /notes Notes.viewNotes
GET /notes/newNote Notes.newNote
POST /notes Notes.saveNote
# Search
GET /users/search UserSearch.search
GET /groups/search GroupSearch.search
#Posts
GET /posts/? Posts.posts #Get all posts
POST /posts/? Posts.makeNewPost
GET /posts/{<[0-9]+>postId} Posts.post #Get a specific post
DELETE /posts/{<[0-9]+>postId} Posts.deletePost #Delete a post
#Links
#Post /links/? #Add/update link
#Questions
POST /questions Questions.askQuestion
GET /answers/{<[0-9]+>answerId} Answers.chooseAnswer
#Comments
GET /comments/? Comments.comments #Get all comments
GET /comments/{<[0-9]+>commentId} Comments.comment #Get a specific comment
DELETE /comments/{<[0-9]+>commentId} Comments.deleteComment #Delete a comment
GET /{Commentable}/{<[0-9]+>statusId}/comments/? Comments.comments #Get all comments for a status
POST /{Commentable}/{<[0-9]+>statusId}/comments/? Comments.addComment #Add a comment to a status
#Events
GET /events/? Events.events #all events
GET /events/upcoming/? Events.upcoming #upcoming events
GET /events/past/? Events.past #past events
GET /users/{<[0-9]+>userId}/events/upcoming/? Events.upcoming #1 users upcoming events
GET /users/{<[0-9]+>userId}/events/past/? Events.past #1 users past events
GET /events/{<[0-9]+>eventId} Events.event #1 event
GET /events/eventcreator Events.addEvent
POST /events Events.addEvent
#Relationships
GET /relationships Relationships.relationships
#Timeline
GET /users/{<[0-9]+>userId}/timeline Timeline.Timeline #Get timeline for specific user
# Checkin
GET /checkins Checkins.checkin
GET /checkins/at Checkins.at
* /photos/{anything} 404
* /users/{anything}/photos/? 404
# Groups
GET /groups/{id} Groups.group
#Likes
GET /{Likeable}/{<[0-9]+>likeableId}/likes Likeables.likes
POST /{Likeable}/{<[0-9]+>likeableId}/likes Likeables.like
DELETE /{Likeable}/{<[0-9]+>likeableId}/likes Likeables.unLike
# Ignore favicon requests
GET /favicon.ico 404
# Map static resources from the /app/public folder to the /public path
GET /public/ staticDir:public
# Catch all
* /{controller}/{action} {controller}.{action}