HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/skl.creativefellows.nl/config/routes.php
<?php


use App\Action\Home\HomeAction;
use App\Action\View\ViewAction;
use App\Action\Form\FormPostAction;
use App\Action\Cookie\CookieAction;


//use App\Middleware\CacheMiddleware;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Slim\App;
use Slim\Routing\RouteCollectorProxy;
use Slim\Interfaces\RouteCollectorProxyInterface as Group;


return function (App $app) {


	// home
	$app->get('/', HomeAction::class)->setName('view.home');
	
	
	// preview
	$app->get('/{id:[0-9]+}-{hash}', \App\Action\View\PreviewAction::class)->setName('page.preview');
	
	
	// form
	$app->post('/submissions/submit/{id}/{name}', FormPostAction::class)->setName('form.post');		
	$app->get('/submissions/{page}/{name}', ViewAction::class)->setName('form.sent');		
	
	// login
	$app->post('/inloggen', \App\Action\Login\PostLoginAction::class)->setName('login');	
	$app->get('/inloggen[/{page}]', \App\Action\Login\ValidateLoginAction::class)->setName('login');	
	$app->get('/logoff', \App\Action\Login\LogoutAction::class)->setName('logout');	
	
	
	// cookies
	$app->post('/accept-cookies', CookieAction::class)->setName('cookies.accept');	
	
	// redirect old
	$app->get('/{section}/{page}-{uid:[1-9]+}', \App\Action\Redirect\PageRedirectAction::class);
	
	
	// locatie zoeker
	$app->get('/zoek-locatie', \App\Action\Finder\FinderLocateAction::class);
	$app->post('/zoek-locatie/overzicht', \App\Action\Finder\FinderAction::class);
	$app->get('/zoek-locatie/get/{address}', \App\Action\Finder\GeoCodeAction::class);
	
	
	// view pages
	$app->get('/{section}/', ViewAction::class);
	$app->get('/{section}[/{page}]', ViewAction::class)->setName('page.view');
	$app->get('/{section}/{category}/', \App\Action\Category\ViewCategoryAction::class)->setName('category.view');
	
	
	
};