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:
@@ -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
|
||||
|
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user