]> git.agnieray.net Git - galette.git/commitdiff
Allow plugins to load custom fonts
authorGuillaume AGNIERAY <dev@agnieray.net>
Sun, 24 Mar 2024 10:30:54 +0000 (11:30 +0100)
committerJohan Cwiklinski <trasher@x-tnd.be>
Sun, 24 Mar 2024 15:15:16 +0000 (16:15 +0100)
galette/includes/routes/plugins.routes.php

index d7683c92e5bc6c523600a4621bb7c00c240b46b0..86b550b9ece4634a8d432bebf2025547e56b50cf 100644 (file)
@@ -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(