scandiweb-products/index.php

5 lines
89 B
PHP

<?php
require 'autoload.php';
echo json_encode(ProductList\Model\Product::selectAll());