1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-27 06:54:31 +02:00

feat(media): Media API implementation #428

This commit is contained in:
Awilum
2020-06-02 14:41:11 +03:00
parent 2f2ffb7afe
commit eae570d95b
2 changed files with 16 additions and 0 deletions

View File

@@ -236,6 +236,15 @@ cors:
expose: []
credentials: false
# Media
media:
accept_file_types: 'gif, jpg, jpeg, png, ico, zip, tgz, txt, md, doc, docx, pdf, epub, xls, xlsx, ppt, pptx, mp3, ogg, wav, m4a, mp4, m4v, ogv, wmv, avi, webm, svg'
max_file_size: 5000000
safe_names: true
image_width: 1600
image_height: 0
image_quality: 70
# Content APIs
api:
delivery:
@@ -245,6 +254,9 @@ api:
registry:
enabled: true
default_token:
files:
enabled: true
default_token:
management:
entries:
enabled: true

View File

@@ -196,6 +196,10 @@ $flextype['entries'] = static function ($container) {
return new Entries($container);
};
$flextype['media'] = static function ($container) use ($flextype, $app) {
return new Media($flextype, $app);
};
/**
* Add plugins service to Flextype container
*/