# Uncomment to test or allow access to single blocks
#opifer_content_block_view:
#    path: /block/{id}
#    defaults: { _controller: OpiferContentBundle:Frontend/Block:view }
#    requirements:
#        id: \d+

# TODO: Re-organize API routes
opifer_content_api_content_view:
    path: /api/content/{id}
    defaults: { _controller: OpiferContentBundle:Api/Content:view }
    methods: [GET]
    options:
        expose: true

# Uncomment to test or allow access to single blocks
#opifer_content_block_view:
#    path: /block/{id}
#    defaults: { _controller: OpiferContentBundle:Frontend/Block:view }
#    requirements:
#        id: \d+

# TODO: Re-organize API routes
opifer_content_api_content_view:
    path: /api/content/{id}
    defaults: { _controller: OpiferContentBundle:Api/Content:view }
    methods: [GET, OPTIONS]
    options:
        expose: true

Allow OPTIONS request on content get
Allow OPTIONS request on content get
