From: Guillaume AGNIERAY Date: Sun, 24 Mar 2024 10:30:54 +0000 (+0100) Subject: Allow plugins to load custom fonts X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=ec5ed26c93ae4d6879277556959be158004c63d7;p=galette.git Allow plugins to load custom fonts --- diff --git a/galette/includes/routes/plugins.routes.php b/galette/includes/routes/plugins.routes.php index d7683c92e..86b550b9e 100644 --- a/galette/includes/routes/plugins.routes.php +++ b/galette/includes/routes/plugins.routes.php @@ -42,7 +42,9 @@ $app->group( 'jpeg' => 'image/jpg', 'gif' => 'image/gif', 'svg' => 'image/svg+xml', - 'map' => 'application/json' + 'map' => 'application/json', + 'woff' => 'application/font-woff', + 'woff2' => 'application/font-woff2' ]; if (strpos($path, '../') === false && isset($auth_ext[$ext])) { $file = $container->get('plugins')->getFile(