Updated the proostekrant to work properly again.
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
// Application configuration
|
||||
return [
|
||||
'app_name' => 'ProostenKrant',
|
||||
'app_description' => 'Een krant van en voor Proosten',
|
||||
'app_slogan' => 'Een krant van en voor Proosten',
|
||||
|
||||
'universal_password' => getenv('UNIVERSAL_PASSWORD') ?: 'wachtwoord',
|
||||
|
||||
'upload_paths' => [
|
||||
'articles' => __DIR__ . '/../public/images/articles/',
|
||||
'profiles' => __DIR__ . '/../public/images/profiles/',
|
||||
],
|
||||
|
||||
'latex_paths' => [
|
||||
'templates' => __DIR__ . '/../templates/latex/',
|
||||
'output' => __DIR__ . '/../storage/latex/',
|
||||
],
|
||||
|
||||
'seasons' => [
|
||||
1 => ['name' => 'Lente', 'color' => '#90EE90'],
|
||||
2 => ['name' => 'Zomer', 'color' => '#FFD700'],
|
||||
3 => ['name' => 'Herfst', 'color' => '#FF8C00'],
|
||||
4 => ['name' => 'Winter', 'color' => '#ADD8E6'],
|
||||
],
|
||||
];
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
// Database configuration
|
||||
return [
|
||||
'host' => getenv('DB_HOST') ?: 'mysql',
|
||||
'database' => getenv('DB_NAME') ?: 'proostenkrant',
|
||||
'username' => getenv('DB_USER') ?: 'proostenkrant',
|
||||
'password' => getenv('DB_PASSWORD') ?: 'proostenkrant',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_unicode_ci',
|
||||
];
|
||||
Executable
+45
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
// Route configuration
|
||||
return [
|
||||
'GET' => [
|
||||
'/' => 'PublicController@index',
|
||||
'/index.php' => 'PublicController@index',
|
||||
'/archive' => 'PublicController@archive',
|
||||
|
||||
// Submission routes
|
||||
'/submit' => 'SubmissionController@showPassphrase',
|
||||
'/submit/passphrase' => 'SubmissionController@showPassphrase',
|
||||
'/submit/form' => 'SubmissionController@showForm',
|
||||
'/submit/confirmation' => 'SubmissionController@showConfirmation',
|
||||
'/submit/edit' => 'SubmissionController@showEditPassphrase',
|
||||
'/submit/edit/list' => 'SubmissionController@showEditList',
|
||||
'/submit/edit/(\d+)' => 'SubmissionController@showWriterVerification',
|
||||
|
||||
// Legacy routes (for logged in users)
|
||||
'/login' => 'AuthController@showLogin',
|
||||
'/logout' => 'AuthController@logout',
|
||||
'/dashboard' => 'DashboardController@index',
|
||||
'/articles' => 'ArticleController@index',
|
||||
'/articles/new' => 'ArticleController@new',
|
||||
'/articles/create' => 'ArticleController@create',
|
||||
'/articles/(\d+)' => 'ArticleController@show',
|
||||
'/articles/(\d+)/verify-writer' => 'ArticleController@showVerifyWriter',
|
||||
'/articles/(\d+)/verify-passphrase' => 'ArticleController@showVerifyPassphrase',
|
||||
'/seasons' => 'SeasonController@index',
|
||||
'/generate-pdf' => 'PdfController@generate',
|
||||
],
|
||||
'POST' => [
|
||||
// Submission routes
|
||||
'/submit/verify' => 'SubmissionController@verifyPassphrase',
|
||||
'/submit/store' => 'SubmissionController@store',
|
||||
'/submit/edit/verify' => 'SubmissionController@verifyEditPassphrase',
|
||||
'/submit/edit/verify-writer' => 'SubmissionController@verifyWriter',
|
||||
|
||||
// Legacy routes
|
||||
'/login' => 'AuthController@login',
|
||||
'/articles' => 'ArticleController@store',
|
||||
'/upload-image' => 'UploadController@upload',
|
||||
'/articles/verify-writer' => 'ArticleController@verifyWriter',
|
||||
'/articles/verify-passphrase' => 'ArticleController@verifyPassphrase',
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user