website/app/routes.php

17 lines
736 B
PHP
Executable File

<?php
// index GET route - this page should welcome the user
$app->get('/', '\\Halftone\\Website\\Controllers\\HomeController:getIndex')->setName('home');
// about GET route - display information about the band!
$app->get('/about', '\\Halftone\\Website\\Controllers\\HomeController:getAbout')->setName('about');
// contact GET route - display the band's contact info
$app->get('/contact', '\\Halftone\\Website\\Controllers\\HomeController:getContact')->setName('contact');
// music routes group
$app->get('/music', '\\Halftone\\Website\\Controllers\\MusicController:getIndex')->setName('music.index');
// shows routes group
$app->get('/shows', '\\Halftone\\Website\\Controllers\\ShowsController:getIndex')->setName('shows.index');