parent
58062bfb94
commit
664a5394ac
@ -0,0 +1,7 @@ |
||||
api_platform: |
||||
mapping: |
||||
paths: ['%kernel.project_dir%/src/CoreBundle/Entity', '%kernel.project_dir%/src/CourseBundle/Entity'] |
||||
patch_formats: |
||||
json: ['application/merge-patch+json'] |
||||
swagger: |
||||
versions: [3] |
||||
@ -0,0 +1,10 @@ |
||||
nelmio_cors: |
||||
defaults: |
||||
origin_regex: true |
||||
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] |
||||
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] |
||||
allow_headers: ['Content-Type', 'Authorization'] |
||||
expose_headers: ['Link'] |
||||
max_age: 3600 |
||||
paths: |
||||
'^/': null |
||||
@ -0,0 +1,4 @@ |
||||
api_platform: |
||||
resource: . |
||||
type: api_platform |
||||
prefix: /api |
||||
@ -1,58 +0,0 @@ |
||||
#NelmioApiDocBundle: |
||||
# resource: "@NelmioApiDocBundle/Resources/config/routing.yml" |
||||
# prefix: /doc |
||||
|
||||
#sonata_api_classification: |
||||
# type: rest |
||||
# prefix: /classification |
||||
# resource: "@SonataClassificationBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_news: |
||||
# type: rest |
||||
# prefix: /news |
||||
# resource: "@SonataNewsBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_media: |
||||
# type: rest |
||||
# prefix: /media |
||||
# resource: "@SonataMediaBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_notification: |
||||
# type: rest |
||||
# prefix: /notification |
||||
# resource: "@SonataNotificationBundle/Resources/config/routing/api.xml" |
||||
|
||||
#sonata_api_ecommerce_product: |
||||
# type: rest |
||||
# prefix: /ecommerce |
||||
# resource: "@SonataProductBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_ecommerce_order: |
||||
# type: rest |
||||
# prefix: /ecommerce |
||||
# resource: "@SonataOrderBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_ecommerce_invoice: |
||||
# type: rest |
||||
# prefix: /ecommerce |
||||
# resource: "@SonataInvoiceBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_ecommerce_customer: |
||||
# type: rest |
||||
# prefix: /ecommerce |
||||
# resource: "@SonataCustomerBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_ecommerce_basket: |
||||
# type: rest |
||||
# prefix: /ecommerce |
||||
# resource: "@SonataBasketBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_page: |
||||
# type: rest |
||||
# prefix: /page |
||||
# resource: "@SonataPageBundle/Resources/config/routing/api.xml" |
||||
# |
||||
#sonata_api_user: |
||||
# type: rest |
||||
# prefix: /user |
||||
# resource: "@SonataUserBundle/Resources/config/routing/api.xml" |
||||
Loading…
Reference in new issue