Skip to content
Permalink
bcc0ad3c10
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (19 sloc) 633 Bytes
<?php
header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
$autoloader = require './vendor/autoload.php'; // Composer Autoload Libraries
$autoloader->add('', __DIR__ . '/generated-classes/'); // Propel ORM Classes
require './generated-conf/config.php'; // Propel Config
require './config.php'; // Slim Config
// Init Slim
$app = new \Slim\App($config);
/**
* Routes
*/
require './routes/category.php';
require './routes/rules.php';
require './routes/food.php';
require './routes/decision.php';
require './routes/nutrient.php';
// Run App
$app->run();