{##
# NOTE : this file is intended to provide twig routes inside javascript files.
# USAGE : just add a unique key to the object 'routes' with the translated value
# then, in your javascript file, just call routes.<my_key> to key the route.
# routes are available in all the frontend, given that this file is included inside
# app/Resources/frontend.html.twig
#}
<script type="text/javascript">
var routes = {
'search-alert' : '{{ path("frontend_vehicle_alert_search") }}',
'logoutUrl' : '{{ path("fos_user_security_logout") }}',
'vehicleList' : '{{ path("frontend_vehicle_list") }}',
'saveSearch' : '{{ path("frontend_search_save") }}',
'storeSearch' : '{{ path("frontend_search_by_url", {"terms" : "placeholder"}) }}',
'setSearchAsAlert' : '{{ path("frontend_search_set_as_alert") }}',
'deleteSearch' : '{{ path("frontend_search_delete") }}',
'listSearch' : '{{ path("frontend_search_list") }}',
'homeVehicles' : '{{ path("frontend_home_vehicles_search") }}',
'eventPlanning' : '{{ path("frontend_sale_event_planning", {"saleId" : "placeholder"}) }}',
'vehicleListSelection' : '{{ path("frontend_selection_list_sort") }}',
'makersAutocomplete' : '{{ path("frontend_maker_autocomplete") }}',
'addSelection' : '{{ path("frontend_selection_add", {"id" : "placeholder"}) }}',
'purchase' : '{{ path("frontend_user_purchase") }}',
'date' : '{{ path("frontend_server_date") }}',
'auctionList' : '{{ path("frontend_auction_list_active") }}',
'auctionBid' : '{{ path("frontend_auction_bid", {"auctionId" : "auctionIdPlaceholder", "type": "typePlaceholder"}) }}',
'setPi' : '{{ path("frontend_purchase_instruction_set", {"vehicleId" : "vehicleIdPlaceholder"}) }}',
}
</script>