scandiweb-products/view/products.php

5 lines
79 B
PHP

<?php
require '../model/product.php';
echo json_encode(Product::selectAll());