frontend_homepage:
    path:     /
    defaults: { _controller: OceanExpertBundle:Default:index }
statistics:
    path:     /statistics
    defaults: { _controller: OceanExpertBundle:Default:statistics }
documentation_api:
    path:     /documentation/api.php
fos_user_dashboard:
    path:     /dashboard
    defaults: { _controller: OceanExpertBundle:Dashboard:index }

fos_user_check:
    path:   /register/checkUsernameAvailable
    defaults: { _controller: OceanExpertBundle:Registration:checkUsernameAvailable}
fos_email_check:
    path:   /register/checkEmailAvailable
    defaults: { _controller: OceanExpertBundle:Registration:checkEmailAvailable}
fos_confirm_profile:
    path:   /register/confirmProfile
    defaults:   {_controller: OceanExpertBundle:Registration:confirmProfile}
check_session:
    path: /checkSession
    defaults: { _controller: OceanExpertBundle:Api:checkSession}

#social sign in (for OBIS)
socialsignin:
    path: /socialsignin
    defaults: { _controller: OceanExpertBundle:Security:socialSignIn}

get_all_countries:
    path:   /getAllCountries
    defaults:   { _controller: OceanExpertBundle:Countries:getAllCountries}
get_institution_by_country:
    path:   /getInstitutionByCountry
    defaults:   { _controller: OceanExpertBundle:Institution:getInstitutionByCountry}
get_institution_address:
    path: /getInstitutionAddress
    defaults:   { _controller: OceanExpertBundle:Institution:getInstitutionAddress}

#leave this fo the time being for backward compatibility, but should not be used, see add_institute instead
add_institution:
    path: /addInstitution
    defaults: { _controller: OceanExpertBundle:Institution:addInstitution}
#@todo create this
#add_institute:
#    path: /institute/add
#    defaults: { _controller: OceanExpertBundle:Institution:addInstitution}

get_institution_ajax:
    path: /getInstutionAjax
    defaults: {_controller: OceanExpertBundle:Institution:getInstitutionsAjax}

## the Controller 'ProjectsController' does not even exit
#@todo remove
#list_projects:
    #path:   /projects
    #defaults:   { _controller: OceanExpertBundle:Project:index}
#projects_people:
    #path:   /projects/people
    #defaults:   {_controller: OceanExpertBundle:Project:people}
#projects_overview:
    #path:   /projects/overview
    #defaults:   {_controller: OceanExpertBundle:Project:overview}
#projects_studyarea:
    #path:   /projects/studyarea
    #defaults:   {_controller: OceanExpertBundle:Project:studyarea}
#projects_documents:
    #path:   /projects/documents
    #defaults:   {_controller: OceanExpertBundle:Project:documents}
#projects_events:
    #path:   /projects/events
    #defaults:   {_controller: OceanExpertBundle:Project:events}

general_search:
    path:   /generalSearch
    defaults:   {_controller: OceanExpertBundle:Search:generalSearch}
user_profile:
    path: /profile
    defaults:  {_controller: OceanExpertBundle:Profile:userProfile}
user_profile_edit:
    path: /profile/edit
    defaults:  {_controller: OceanExpertBundle:Profile:edit}
view_profile:
    path:  /expert/{user}
    defaults:   {_controller: OceanExpertBundle:Profile:viewProfile}
    requirements:
        methods: GET
get_expert_ajax:
    path: /getExpertAjax
    defaults:  {_controller: OceanExpertBundle:Profile:getExpertsAjax}
profile_status:
    path:  /profileSuccess
    defaults:   {_controller: OceanExpertBundle:Registration:profileStatus}
update_profile_time:
    path:  /updateProfile
    defaults:   {_controller: OceanExpertBundle:Profile:updateProfileTime}
activate_user:
    path: /activateUser/{userId}
    defaults:   {_controller: OceanExpertBundle:Profile:activateUser}
    requirements:
        methods: POST
deactivate_user:
    path: /deactivateUser/{userId}
    defaults:   {_controller: OceanExpertBundle:Profile:deactivateUser}
    requirements:
        methods: POST

fos_admin_profile_edit:
    path:  /profile/edit/{userId}
    defaults:   {_controller: OceanExpertBundle:Profile:edit}
    requirements:
        methods: GET
#still here for backward compatibility
#do not use, use view_institute
view_institution:
    path:  /institution/{instId}
    defaults:   {_controller: OceanExpertBundle:Institution:viewInstitution}
    requirements:
        methods: GET
view_institute:
    path:  /institute/{instId}
    defaults:   {_controller: OceanExpertBundle:Institution:viewInstitution}
    requirements:
        methods: GET
view_institutes:
    path:  /institutes
    defaults:   {_controller: OceanExpertBundle:Institution:viewInstitutes}
    requirements:
        methods: GET
#leave here for the time being for backward compatibility, do not use, see edit_institute instead
edit_institution:
    path:  /institution/edit/{instId}
    defaults:   {_controller: OceanExpertBundle:Institution:viewInstitution}
    requirements:
        methods: GET
edit_institute:
    path:  /institute/edit/{instId}
    defaults:   {_controller: OceanExpertBundle:Institution:viewInstitution}
    requirements:
        methods: GET
edit_institute_success:
    path:  /institutionSuccess/{idInst}
    defaults:   {_controller: OceanExpertBundle:Institution:editInstituteSuccess}

create_user:
    path: /user/create/{offset}
    defaults: {_controller: OceanExpertBundle:User:createUser}
    requirements:
        methods: GET
advanced_search:
    path: /advancedSearch
    defaults: {_controller: OceanExpertBundle:Search:advancedSearch}
#leave this incorrectly spelled entry for legacy reasons
#old sites and publications seem to link to this instead of the correct advanceDsearch
advance_search:
    path: /advanceSearch
    defaults: {_controller: OceanExpertBundle:Search:advancedSearch}

get_sea_regions:
    path: /getSeaRegions
    defaults:   { _controller: OceanExpertBundle:Search:getSeaRegions}
get_member_groups:
    path: /getMemberGroups
    defaults:   { _controller: OceanExpertBundle:Search:getMemberGroups}
get_job_types:
    path: /getJobTypes
    defaults:   { _controller: OceanExpertBundle:Search:getJobTypes}
get_countries:
    path: /getCountries
    defaults:   { _controller: OceanExpertBundle:Search:getCountries}
get_subject_area:
    path: /getSubjectArea
    defaults: {_controller: OceanExpertBundle:Search:getSubjectArea}
get_event_types:
    path: /getEventTypes
    defaults: {_controller: OceanExpertBundle:Search:getEventTypes}
get_institution_types:
    path: /getInstitutionTypes
    defaults: {_controller: OceanExpertBundle:Search:getInstitutionTypes}
get_document_types:
    path: /getDocumentTypes
    defaults: { _controller: OceanExpertBundle:Search:getDocumentTypes }
create_map_json:
    path: /createMapJson
    defaults: {_controller: OceanExpertBundle:Default:createMapJson}
change_username:
    path: /changeUsername
    defaults: {_controller: OceanExpertBundle:Resetting:changeUsername}
change_email:
    path: /changeEmail
    defaults: {_controller: OceanExpertBundle:Resetting:changeEmail}
delete_account:
    path: /deleteAccount
    defaults: {_controller: OceanExpertBundle:Registration:deleteAccount}
recover_account:
    path: /recoverAccount
    defaults: {_controller: OceanExpertBundle:Registration:recoverAccount}
activate_institute:
    path: /activateInstitute/{instituteId}
    defaults:   {_controller: OceanExpertBundle:Institution:activateInstitute}
    requirements:
        methods: POST
deactivate_institute:
    path: /deactivateInstitute/{instituteId}
    defaults:   {_controller: OceanExpertBundle:Institution:deactivateInstitute}
    requirements:
        methods: POST
profile_verified:
    path: /account/verified
    defaults:   {_controller: OceanExpertBundle:Profile:qccontrol}
set_retired:
    path: /account/setRetired
    defaults:   {_controller: OceanExpertBundle:Profile:setRetired}
set_deceased:
    path: /account/setDeceased
    defaults:   {_controller: OceanExpertBundle:Profile:setDeceased}
set_donotinvite:
    path: /account/setDoNotInvite
    defaults:   {_controller: OceanExpertBundle:Profile:setDoNotInvite}
set_admincomments:
    path: /account/setAdmincomments
    defaults:   {_controller: OceanExpertBundle:Profile:setAdmincomments}
set_groups:
    path: /account/setGroups
    defaults:   {_controller: OceanExpertBundle:Group:setGroups}
set_privileges:
    path: /account/setPrivileges
    defaults:   {_controller: OceanExpertBundle:Profile:setPrivileges}
reset_password_link:
    path: /account/resetPasswordLink
    defaults: {_controller: OceanExpertBundle:Profile:resetPasswordLink}

send_email_verification:
    path: /user/emailVerification
    defaults: {_controller: OceanExpertBundle:User:sendEmailVerification}
assign_roles:
    path: /account/setRoles
    defaults: {_controller: OceanExpertBundle:Profile:assignRoles}
disclaimer:
    path: /disclaimer
    defaults: {_controller: OceanExpertBundle:Default:disclaimer}
expert_lname_start_with:
    path: /expertLnameStartWith
    defaults: {_controller: OceanExpertBundle:Default:getExpertsLastName}
expert_countries_start_with:
    path: /expertCountriesStartWith
    defaults: {_controller: OceanExpertBundle:Default:getExpertCountryList}
expert_subjects:
    path: /expertSubjects
    defaults: {_controller: OceanExpertBundle:Default:getExpertsSubjects}
expert_sea_regions:
    path: /expertSeaRegions
    defaults: {_controller: OceanExpertBundle:Default:getExpertsSeaRegions}
institute_name_starts_with:
    path: /instituteNameStartsWith
    defaults: {_controller: OceanExpertBundle:Default:getInstitutionNameList}
institute_countries_starts_with:
    path: /instituteCountriesStartsWith
    defaults: {_controller: OceanExpertBundle:Default:getInstitutionCountryList}
institute_types:
    path: /instituteTypes
    defaults: {_controller: OceanExpertBundle:Default:getInstitutionTypes}
institute_areas:
    path: /instituteAreas
    defaults: {_controller: OceanExpertBundle:Default:getInstitutesSeaRegions}

get_task_ajax:
    path: /getTaskAjax
    defaults: {_controller: OceanExpertBundle:Admin:getTaskAjax}

mailbox:
    path: /send_mails
    defaults: {_controller: OceanExpertBundle:Mails:index}

event_calendar:
    path: /events/calendar
    defaults: {_controller: OceanExpertBundle:Event:calendar}
events:
    path: /events
    defaults: { _controller: OceanExpertBundle:Event:calendar }
view_event:
    path: /event/{event}
    defaults: {_controller: OceanExpertBundle:Event:viewEvent, event: 0}
view_planningWheel:
    path: /planningWheel
    defaults: { _controller: OceanExpertBundle:Event:viewPlanningWheel }
view_planningwheel:
    path: /planningwheel
    defaults: { _controller: OceanExpertBundle:Event:viewPlanningWheel }
confirm_event_creation:
    path: /confirmEventCreation/{eventId}
    defaults: {_controller: OceanExpertBundle:Event:confirmEventCreation, eventId: 0}
register_event:
    path: /registerEvent/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:registerEvent, idEvent: 0}

register:
    path: /register
    defaults: {_controller: OceanExpertBundle:Registration:register}

view_printable_participants:
    path: /viewPrintableParticipants/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:viewPrintableParticipants, idEvent: 0}

view_agenda_printable:
    path: /viewAgendaPrintable/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:viewAgendaPrintable, idEvent: 0}

getIcs:
    path: /getIcs/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:getIcs, idEvent: 0}

view_annonated_agenda_printable:
    path: /viewAnnonatedAgendaPrintable/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:viewAnnonatedAgendaPrintable, idEvent: 0}

event_image_upload:
    path: /event/uploadImage/{event}
    defaults: {_controller: OceanExpertBundle:Event:eventImageUpload}

#where do we find the uploaded logos for the institutions
#is used to create the absolute link to the logos
institution_logo_upload:
    path: /uploads/institutes/

event_confirmation:
    path: /confirmEventParticipation/{idEvent}/{hash}
    defaults: {_controller: OceanExpertBundle:Event:confirmEventParticipation, idEvent: 0, hash: 0 }

download_event_participants_info:
    path: /downloadEventParticipantsInfo/{idEvent}
    defaults : {_controller: OceanExpertBundle:Event:downloadEventParticipantsInfo, idEvent: 0}

download_experts_per_country:
    path: /downloadExpertsPerCountry
    defaults : {_controller: OceanExpertBundle:Default:downloadExpertsPerCountry}

search_documents:
    path: /searchDocuments
    defaults: {_controller: OceanExpertBundle:Document:searchDocument}

get_document_by_id:
    path: /getdocumentById/{idDoc}
    defaults: {_controller: OceanExpertBundle:Document:getDocumentById, idDoc: 0}

document_download_block:
    path: /documentDownloadBlock
    defaults: {_controller: OceanExpertBundle:Document:documentDownloadBlock}
download_document:
    path: /downloadFile/{idFile}
    defaults: {_controller: OceanExpertBundle:Document:downloadFile, idFile: 0}
view_document:
    path: /document/{idDoc}
    defaults: {_controller: OceanExpertBundle:Document:viewDocument, idDoc: 0}
view_documents:
    path: /documents
    defaults: {_controller: OceanExpertBundle:Document:viewDocuments}

view_doclist:
    path: /doclist/{idDoclist}
    defaults: {_controller: OceanExpertBundle:Document:viewDoclist, idDoclist: 0}
view_all_doclists:
    path: /doclists
    defaults: { _controller: OceanExpertBundle:Document:viewAllDoclists }
process_email:
    path: /processEmail
    defaults: {_controller: OceanExpertBundle:Mails:processEmail}
# @todo : check if we still need this, we already have an active check for mandrill in CheckMandrillForWebhooks
mandrill_webhook:
    path: /mandrill/webhook
    defaults: { _controller: OceanExpertBundle:Mails:mandrillWebhook }

# LME Projects Section
lme_add_project:
    path: /admin/addProject
    defaults: { _controller: OceanExpertBundle:Lme:editProject }
lme_edit_project:
    path: /admin/editProject/{idProject}
    defaults: { _controller: OceanExpertBundle:Lme:editProject, idProject: 0 }
lme_project_search:
    path: /searchProjects
    defaults: {_controller: OceanExpertBundle:Lme:searchProjects}
lme_view_project:
    path: /project/{idProject}
    defaults: {_controller: OceanExpertBundle:Lme:viewProject, idProject: 0}
get_lme_status:
    path: /getProjectStatus
    defaults: {_controller: OceanExpertBundle:Lme:getLmeStatus, idProject: 0}
#@todo remove
#get_lme_ecosystem:
#    path: /getProjectEcosystem
#    defaults: {_controller: OceanExpertBundle:Lme:getLmeEcosystem}
#@todo remove
#lme_data_import:
#    path: /lmedataimport
#    defaults: {_controller: OceanExpertBundle:Lme:import}

email_test:
    path: /emailTest
    defaults: {_controller: OceanExpertBundle:Admin:emailTest}
daily_approve_cron:
    path: /dailyApproveCron
    defaults: {_controller: OceanExpertBundle:Crons:dailyApproveCron}
email_unsubscribe:
    path: /unsubscribe/{token}
    defaults: {_controller: OceanExpertBundle:Mails:unsubscribe, token: null }

#################################################################
#----------------------------ADMIN------------------------------#
#################################################################

admin_dashboard:
    path: /admin
    defaults: {_controller: OceanExpertBundle:Admin:index}

user_messages:
    path: /admin/messages
    defaults: {_controller: OceanExpertBundle:Message:userMessages}

all_messages:
    path: /admin/allmessages
    defaults: {_controller: OceanExpertBundle:Message:allMessages}

send_group_email:
    path: /admin/sendGroupEmail
    defaults: {_controller: OceanExpertBundle:Group:sendGroupEmail}

upload_email_attachments:
    path: /admin/uploadEmailAttachments
    defaults: {_controller: OceanExpertBundle:Mails:uploadEmailAttachments}

edit_doclist:
    path: /admin/editDoclist/{idDoclist}
    defaults: {_controller: OceanExpertBundle:Document:editDoclist, idDoclist: 0}

view_messages:
    path: /admin/message/{idMessage}
    defaults: {_controller: OceanExpertBundle:Message:viewMessage, idMessage: 0}

email_queue:
    path: /admin/mailQueue
    defaults: {_controller: OceanExpertBundle:Mails:emailQueue}

remove_email_attachments:
    path: /admin/removeEmailAttachments
    defaults: {_controller: OceanExpertBundle:Mails:removeEmailAttachment}

add_agenda_item:
    path: /admin/addAgendaItem/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:addAgendaItemAjax}

delete_agenda_item:
    path: /admin/deleteAgendaItemAjax
    defaults: {_controller: OceanExpertBundle:Event:deleteAgendaItemAjax}

update_agenda_item:
    path: /admin/updateAgendaItemAjax
    defaults: {_controller: OceanExpertBundle:Event:updateAgendaItemAjax}

update_presentation_agenda:
    path: /admin/updatePresentationAgenda
    defaults: {_controller: OceanExpertBundle:Event:updatePresentationAgenda}

save_agenda_order:
    path: /admin/saveAgendaOrder
    defaults: {_controller: OceanExpertBundle:Event:saveAgendaOrder}

delete_import_participant:
    path: /admin/deleteImportParticipant
    defaults: {_controller: OceanExpertBundle:Event:deleteImportParticipant}

add_event_participants:
    path: /admin/addEventParticipants
    defaults: {_controller: OceanExpertBundle:Event:addEventParticipants}

check_participants_details:
    path: /admin/checkParticipantsDetails
    defaults: {_controller: OceanExpertBundle:Event:checkParticipantsDetail}

import_event_participants:
    path: /admin/importParticipants/event/{idEvent}/{idFile}
    defaults: { _controller: OceanExpertBundle:Event:importParticipants, idEvent: 0,idFile: 0 }

import_edit_participant:
    path: /admin/importParticipants/editParticipant/{idEvent}/{idUser}
    defaults: { _controller: OceanExpertBundle:Event:editParticipant, idEvent: 0,idUser: 0 }

#--------------------------DOCUMENTS----------------------------#
approve_documents:
    path: /admin/approveDocuments
    defaults: {_controller: OceanExpertBundle:Admin:approveDocuments}

disapprove_documents:
    path: /admin/disapproveDocuments
    defaults: {_controller: OceanExpertBundle:Admin:disapproveDocuments}

delete_document_list:
    path: /admin/deleteDocumentList
    defaults: {_controller: OceanExpertBundle:Document:deleteDocumentList}

remove_document_from_list:
    path: /admin/removeDocumentFromList
    defaults: {_controller: OceanExpertBundle:Document:removeDocumentFromList}

add_document_to_doc_list:
    path: /admin/addDocumentToDoclist
    defaults: {_controller: OceanExpertBundle:Document:addDocumentToDoclist}

#this should not be called from a url in the browser
#see #99
delete_document:
    path: /admin/deleteDocument
    defaults: {_controller: OceanExpertBundle:Document:deleteDocument}

remove_document_file:
    path: /admin/removeDocFile
    defaults: {_controller: OceanExpertBundle:Document:removeDocumentFile}

edit_document:
    path: /admin/document/{idDoc}
    defaults: {_controller: OceanExpertBundle:Document:addDocument, idDoc: 0}

add_event_document:
    path: /admin/addEventDocument
    defaults: {_controller: OceanExpertBundle:Event:addEventDocument}

upload_event_document:
    path: /admin/uploadEventDocument
    defaults: {_controller: OceanExpertBundle:Document:uploadEventDocument}

delete_event_document:
    path: /admin/deleteEventDocument
    defaults: { _controller: OceanExpertBundle:Document:deleteEventDocument }

#------------------------USERS/EXPERTS-----------------------------#
#approve == activate
approve_users:
    path: /admin/approveUsers
    defaults: {_controller: OceanExpertBundle:Admin:approveUser}

#disapprove == deactivate
disapprove_users:
    path: /admin/disApproveUsers
    defaults: {_controller: OceanExpertBundle:Admin:disApproveUser}

delete_users:
    path: /admin/deleteUser
    defaults: {_controller: OceanExpertBundle:Admin:deleteUser}

hard_delete_users:
    path: /admin/hardDeleteUser
    defaults: {_controller: OceanExpertBundle:Admin:hardDeleteUser}

add_expert:
    path: /admin/addExpert
    defaults: {_controller: OceanExpertBundle:Admin:addExpert}

admin_list_expert:
    path: /admin/experts/{type}
    defaults: {_controller: OceanExpertBundle:Admin:experts, type: 1}

add_expert_success:
    path: /admin/addExpertSuccess
    defaults: {_controller: OceanExpertBundle:Admin:addExpertSuccess}

#------------------------INSTITUTIONS-------------------------------#
approve_institutes:
    path: /admin/approveInstitutes
    defaults: {_controller: OceanExpertBundle:Admin:approveInstitutes}

disapprove_institutes:
    path: /admin/disapproveInstitutes
    defaults: {_controller: OceanExpertBundle:Admin:disapproveInstitutes}

delete_institutes:
    path: /admin/deleteInstitutes
    defaults: {_controller: OceanExpertBundle:Admin:deleteInstitutes}


#------------------------LME PROJECTS-------------------------------#
approve_projects:
    path: /admin/approveProjects
    defaults: {_controller: OceanExpertBundle:Admin:approveProjects}

disapprove_projects:
    path: /admin/disapproveProjects
    defaults: {_controller: OceanExpertBundle:Admin:disapproveProjects}

delete_projects:
    path: /admin/deleteProjects
    defaults: {_controller: OceanExpertBundle:Admin:deleteProjects}

lme_project_success:
    path: /admin/projectSuccess/{idProject}
    defaults: {_controller: OceanExpertBundle:Lme:projectSuccess}

#------------------------EVENTS-------------------------------#
approve_events:
    path: /admin/approveEvents
    defaults: {_controller: OceanExpertBundle:Admin:approveEvents}

disapprove_events:
    path: /admin/disapproveEvents
    defaults: {_controller: OceanExpertBundle:Admin:disapproveEvents}

delete_events:
    path: /admin/deleteEvents
    defaults: {_controller: OceanExpertBundle:Admin:deleteEvents}

view_posted_event:
    path: /admin/listEvents/{idInd}
    defaults: {_controller: OceanExpertBundle:Event:listUserEvents, idInd: 6552}

edit_event:
    path: /admin/event/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:createEvent, idEvent: 0}

copy_event:
    path: /admin/copyEvent/{idEvent}
    defaults: {_controller: OceanExpertBundle:Event:copyEvent, idEvent: 0}

add_event_member:
    path: /admin/addEventMember
    defaults: {_controller: OceanExpertBundle:Event:addEventMember}

add_bulk_event_member:
    path: /admin/addBulkEventMember
    defaults: {_controller: OceanExpertBundle:Event:addBulkEventMember}

delete_event_member:
    path: /admin/deleteEventMember
    defaults: {_controller: OceanExpertBundle:Event:deleteEventMember}

edit_event_member:
    path: /admin/editEventMember
    defaults: {_controller: OceanExpertBundle:Event:editEventMember}

edit_event_contacts:
    path: /admin/editEventContacts
    defaults: {_controller: OceanExpertBundle:Event:editEventContacts}

event_clear_contact:
    path: /admin/eventClearContact
    defaults: {_controller: OceanExpertBundle:Event:eventClearContact}

send_invites_event_participants:
    path: /admin/sendInvitesEventParticipants
    defaults: {_controller: OceanExpertBundle:Event:sendInvitesEventParticipants}

event_status_change:
    path: /admin/updateEventStatus
    defaults: {_controller: OceanExpertBundle:Event:updateEventStatus}

#------------------------GROUPS-------------------------------#

add_group:
    path: /admin/addGroup
    defaults: {_controller: OceanExpertBundle:Group:addGroups}

edit_group:
    path: /admin/editGroup/{id}
    defaults: {_controller: OceanExpertBundle:Group:editGroup, id: 31}
    requirements:
        methods: GET

save_group:
    path: /admin/saveGroup
    defaults: {_controller: OceanExpertBundle:Group:saveGroup}

view_group:
    path: /group/{groupId}
    defaults: {_controller: OceanExpertBundle:Group:viewGroup, groupId: 29}
    requirements:
        methods: GET
view_admin_group:
    path: /admin/group/{groupId}
    defaults: {_controller: OceanExpertBundle:Admin:viewGroup, groupId: 29}
    requirements:
        methods: GET
save_group_order:
    path: /admin/saveGroupOrder
    defaults: {_controller: OceanExpertBundle:Group:saveGroupOrder}

save_group_member_order:
    path: /admin/saveGroupMemberOrder
    defaults: {_controller: OceanExpertBundle:Group:saveGroupMemberOrder}

groups:
    path: /groups/{id}
    defaults: {_controller: OceanExpertBundle:Group:allGroups, id: 29}
    requirements:
        methods: GET
admin_groups:
    path: /admin/groups/{id}
    defaults: {_controller: OceanExpertBundle:Admin:allGroups, id: 29}
    requirements:
        methods: GET
get_group_data:
    path: /getGroupData/{id}
    defaults: {_controller: OceanExpertBundle:Group:getGroupData, id: 29}
    requirements:
        methods: GET

get_group_experts_addresses:
    path: /admin/getGroupExpertsAddresses/{groupId}
    defaults: {_controller: OceanExpertBundle:Group:getGroupExpertsAddresses, groupId: 29}
    requirements:
        methods: GET

datatables_server_processing:
    path: /dataTablesServerProcessing/{groupId}
    defaults: {_controller: OceanExpertBundle:Group:dataTablesServerProcessing, groupId: 29}
    requirements:
        methods: GET

get_members:
    path: /getMembers
    defaults: {_controller: OceanExpertBundle:Search:getMembers}

add_group_member:
    path: /admin/addGroupMember
    defaults: {_controller: OceanExpertBundle:Group:addGroupMember}

add_bulk_group_member:
    path: /admin/addBulkGroupMember
    defaults: {_controller: OceanExpertBundle:Group:addBulkGroupMember}

get_all_groups_json:
    path: /getAllGroupsJson
    defaults: {_controller: OceanExpertBundle:Group:getAllGroupJson}

delete_group:
    path: /admin/deleteGroup
    defaults: {_controller: OceanExpertBundle:Group:deleteGroup}

rebuild_groups:
    path: /admin/rebuildGroups/{groupId}
    defaults: {_controller: OceanExpertBundle:Group:rebuildGroups, groupId: 0}
    requirements:
        methods: GET

update_group_members:
    path: /admin/updateGroupMembers
    defaults: {_controller: OceanExpertBundle:Group:updateGroupMembers}

get_group_data_db:
    path: /getGroupDatadb/{id}
    defaults: {_controller: OceanExpertBundle:Group:getGroupDataDb, id: 29}
    requirements:
        methods: GET

set_group_role:
    path: /admin/setGroupRole
    defaults: {_controller: OceanExpertBundle:Group:setGroupRole}

delete_group_member:
    path: /admin/deleteGroupMember
    defaults: {_controller: OceanExpertBundle:Group:deleteGroupMember}

update_member_ids:
    path: /admin/updateMemberIds
    defaults: {_controller: OceanExpertBundle:Group:updateMemberIds}

#################################################################
#--------------------END-----ADMIN-----END----------------------#
#################################################################


##########################################################################
#----------------------------------API-----------------------------------#
##########################################################################

api_login:
    path: /api/login_check
    defaults: {_controller: OceanExpertBundle:Api:login}

#@todo this does not exist, see api_routing.yaml for this
api_event_participant:
    path: /api/eventParticipants/{idGroup}
    defaults: {_controller: OceanExpertBundle:Api:eventParticipant, idGroup: 46}
