riverside_pt.palette:
  path: '/dev/palette'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\PaletteController::page'
    _title: 'Color Palette'
  requirements:
    _permission: 'administer site configuration'

riverside_pt.home:
  path: '/home'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\HomeController::page'
    _title: 'Welcome'
  requirements:
    _permission: 'access content'

riverside_pt.booking_store_slot:
  path: '/schedule/book/slot'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\ScheduleController::storeSlot'
  requirements:
    _permission: 'access content'
  methods: [POST]

riverside_pt.schedule_events:
  path: '/schedule/events'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\ScheduleController::events'
  requirements:
    _permission: 'access content'
  options:
    _auth:
      - cookie

riverside_pt.about:
  path: '/about'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\PageController::page'
    _title: 'About'
  requirements:
    _permission: 'access content'

riverside_pt.services:
  path: '/services'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
    destination: '/home#pt-services'
  requirements:
    _access: 'TRUE'

riverside_pt.faq:
  path: '/faq'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
    destination: '/home#pt-faq'
  requirements:
    _access: 'TRUE'

riverside_pt.book_appointment:
  path: '/book-appointment'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
    destination: '/home#book-an-appointment'
  requirements:
    _access: 'TRUE'

riverside_pt.testimonials:
  path: '/testimonials'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\HomeController::redirectToAnchor'
    destination: '/home#pt-testimonials'
  requirements:
    _access: 'TRUE'

riverside_pt.service:
  path: '/services/{slug}'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\PageController::service'
    _title: 'Service'
  requirements:
    _permission: 'access content'
    slug: 'diagnostic-assessment|sports-rehabilitation|pre-post-surgical-rehab|neurological-therapy'

riverside_pt.contact:
  path: '/contact'
  defaults:
    _controller: '\Drupal\riverside_pt\Controller\PageController::contact'
    _title: 'Contact'
  requirements:
    _permission: 'access content'
