// Imagine the `api.page` route value is `/controller/{page}`: ajax: "{{ route(api.page) }}".replace("{page}", page);