AddAssociation will add the given Association to the database.
AddAssociationController will answer a JSON of the brand new created association (from the JSON Body) Should be protected.
AddAssociationUser will add the given AssociationUser to the database.
No description provided by the author
AddAttendeeToGoingList will add the given userID to the given eventID as an attendee.
No description provided by the author
No description provided by the author
AddEvent will add the Event event to the database.
AddEventController will answer the JSON of the brand new created Event from the JSON body Should be protected.
AddEventToAssociation will add the given event ID to the given association.
AddEventToUser will add the eventID to the list of the user's event linked to the given id.
No description provided by the author
AddPost will add the given Post to the database.
AddPostController will answer a JSON of the brand new created post (from the JSON Body) Should be protected.
No description provided by the author
AddUser will add the given user from JSON body to the database.
AddUserController will answer a JSON of the brand new created user (from the JSON Body).
ArchiveImage will move images in a subdirectory "archive".
AuthMiddleware makes sure the user is authenticated before handling the request.
AddAttendeeController will answer the JSON of the event with the given attendee added.
CheckAndRefreshStringTokens renews the auth token, if needed.
No description provided by the author
CommentEventController will answer a JSON of the event.
CommentPost will add the given comment object to the list of comments of the post linked to the given id.
CommentPostController will answer a JSON of the post.
ContainsString returns true if slice contains element.
CreateNewTokens creates auth and refresh tokens.
No description provided by the author
Credit show a credit page.
DeleteAssociation will delete the given association from the database.
DeleteAssociationController will answer a JSON of an empty association if the deletion has succeed Should be protected.
No description provided by the author
No description provided by the author
DeleteEvent will delete the given Event.
DeleteEventController will answer an empty JSON if the deletion has succeed Should be protected.
DeleteImage will permanently delete an image.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeletePost will delete the given Post from the database.
DeletePostController will answer a JSON of an empty post if the deletion has succeed Should be protected.
No description provided by the author
No description provided by the author
DeleteTokenCookies deletes the cookies.
DeleteUser will delete the given user from the database.
DeleteUserController will answer a JSON of an empty user if the deletion succeeded.
DislikePost will remove the postID from the list of liked post of the user linked to the given id.
DislikePostController will answer a JSON of the post and the user that disliked the post.
DislikePostWithUser will remove the user to the list of users that liked the post (cf.
No description provided by the author
GenerateRandomBytes returns securely generated random bytes.
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
GetAllAssociations will return an array of all the existing Association, hidding "Menu" association and sort by name asc.
GetAllAssociationsController will answer a JSON of all associations.
GetAllPostsController will answer a JSON of the N latest posts.
GetAllUser will return an User object from the given ID.
No description provided by the author
GetAssociation will return an Association object from the given ID.
GetAssociationController will answer a JSON of the association linked to the given id in the URL.
GetAssociationFromEmail will return an Association object from the given email.
GetAssociationUser return the AssociationUser object with the given ID.
No description provided by the author
No description provided by the author
No description provided by the author
GetEvent returns an Event object from the given ID.
GetEventController will answer a JSON of the event from the given "id" in the URL.
GetEvents returns an array of Events.
GetEventsForAssociation returns an array of all Events from the given association ID.
No description provided by the author
GetFutureEvents returns an array of Event that will happen after "NOW".
GetFutureEventsController will answer a JSON containing all future events from "NOW".
GetImageColors will return a palette of colors found in the image.
GetImageDimension will return image dimention in pixels.
GetImagesNames will return a string of all images in cdn.
GetLatestPosts will return an array of the last N Posts.
No description provided by the author
GetMongoSession creates a new session.
GetMyAssociationController will answer a JSON of the associations owned by the applicant master association.
GetMyAssociations will return an array of all ID from owned existing Association.
No description provided by the author
No description provided by the author
No description provided by the author
GetPost will return a Post object from the given ID.
GetPostController will answer a JSON of the post linked to the given id in the URL.
GetPosts will return an array of Posts.
GetPostsForAssociation returns an array of Posts from the given association ID.
GetPostsForAssociationController will answer a JSON of the post owned by the given association.
No description provided by the author
GetUser return the User object with the given ID.
GetUserController will answer a JSON of the user linked to the given id in the URL.
GetUserFromRequest returns the User or AssociationUser ID from the auth cookie.
HowToPost show a page explaining how to post for associations.
Index is just a test actually.
InitConfig loads the configuration from the filesystem.
InitJWT reads the key files before starting http handlers.
Legal show a legal page.
LikePost will add the postID to the list of liked post of the user linked to the given id.
LikePostController will answer a JSON of the post and the user that liked the post.
LikePostWithUser will add the user to the list of user that liked the post (cf.
LoginAssociationController logs an association in.
LoginUserController logs a user in using CAS.
LogoutAssociationController logs an association out.
LogoutUserController logs a user out.
NewRouter is the constructor of the Router It will create every routes from the routes variable just above.
NewUser creates a new User.
No description provided by the author
No description provided by the author
RemoveAttendee remove the given userID from the given eventID as a participant.
RemoveAttendeeController will answer the JSON of the event without the given attendee added.
RemoveEventFromAssociation will remove the given event ID from the given association.
RemoveEventFromUser will remove the eventID from the list of the user's event linked to the given ID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResizeImage will resize an image as jpeg and response its new name Put 0 to newWidth or newHeight to make it automatically calculate to keep aspect ratio.
ResponseHandler will response to the client.
RevokeRefreshStringToken deletes the given token from the database, if valid.
SearchAssociation return an array of all Association found with the given search string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SendAssociationEmailForCommentOnEvent sends an email indicating a new comment has been added on an event.
SendAssociationEmailForCommentOnPost sends an email indicating a new comment has been added on a post.
SendAssociationEmailSubscription sends a subscription email containing the credentials.
SendEmail sends an email to the given recipient.
TriggerNotificationForEvent sends a notification and a push notification to users targeted by the promotion.
TriggerNotificationForPost sends a notification and a push notification to users targeted by the promotion.
TriggerNotificationForUserFromEvent sends a notification and a push notification to the given user.
TriggerNotificationForUserFromPost sends a notification and a push notification to the given user.
No description provided by the author
UncommentEventController will answer a JSON of the event.
UncommentPost will remove the given comment object from the list of comments of the post linked to the given id.
UncommentPostController will answer a JSON of the post Should be protected.
UpdateAssociation will update the given Association link to the given ID, with the field of the given Association, in the database.
UpdateAssociationController will answer the JSON of the modified association (from the JSON Body) Should be protected.
UpdateEvent will update the Event event in the database.
UpdateEventController will answer the JSON of the modified Event from the JSON body Should be protected.
No description provided by the author
UpdatePost will update the post linked to the given ID, with the field of the given post, in the database.
UpdatePostController will answer the JSON of the modified post (from the JSON Body) Should be protected.
UpdateUser will update the user link to the given ID, with the field of the given user, in the database.
UpdateUserController will answer the JSON of the modified user (from the JSON Body) Should be protected.
UploadImage will give a random name and upload the image.
UploadImageController will upload a new image in the cdn.
UploadImageWithName will manage the upload image from a POST request.
UploadNewImageController will upload a new image in the cdn.
VerifyEmail return true if email is not already used.