Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
prayogadhi committed Jan 15, 2022
0 parents commit 41f83eb
Show file tree
Hide file tree
Showing 8 changed files with 507 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"slim/slim": "^3.12"
}
}
300 changes: 300 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

require __DIR__.'./vendor/autoload.php';
require __DIR__.'./src/config/db.php';

$app = new \Slim\App;

require __DIR__.'./src/routes/products.php';
Loading

0 comments on commit 41f83eb

Please sign in to comment.