File: index.php

Recommend this page to a friend!
  Classes of Marco Cesarato  >  PHP API Database  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP API Database
Provide access to database records via REST API
Author: By
Last change: Reformatted code (php-cs-fixer)

Added code standard,
Added hooks git for code standard,
Fixed parse where on null elements
Date: 9 months ago
Size: 481 bytes
 

Contents

Class file image Download
<?php
/**
 * Index.
 *
 * @author Marco Cesarato <cesarato.developer@gmail.com>
 * @copyright Copyright (c) 2019
 * @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
 *
 * @see https://github.com/marcocesarato/Database-Web-API
 */
use marcocesarato\DatabaseAPI\API;

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE');

include
dirname(__FILE__) . '/includes/loader.php';
API::run();


For more information send a message to info at phpclasses dot org.