From 515365d8df2ff00215d8ad6d67535529430eb39b Mon Sep 17 00:00:00 2001 From: thomasmars Date: Thu, 2 Mar 2017 14:14:26 +0100 Subject: [PATCH] Add common hub endpoint to core HFP-794 --- h5p.classes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index f12ae20..c85091f 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1725,6 +1725,12 @@ class H5PCore { 'js/h5p-utils.js', ); + const CONTENT_TYPES = 0; + + public static $hubEndpoints = array( + self::CONTENT_TYPES => 'api.h5p.org/v1/content-types/' + ); + public static $defaultContentWhitelist = 'json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile'; public static $defaultLibraryWhitelistExtras = 'js css';