From 40b7d51b3991ede6b9f64c4def55852624429643 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Thu, 28 Jul 2022 07:23:22 +0200 Subject: [PATCH] Reorganize files --- database/{schema.sql => DDL.sql} | 0 index.php | 4 ++-- add-product.html => static/add-product.html | 2 +- index.css => static/index.css | 0 index.html => static/index.html | 4 ++-- index.js => static/index.js | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename database/{schema.sql => DDL.sql} (100%) rename add-product.html => static/add-product.html (84%) rename index.css => static/index.css (100%) rename index.html => static/index.html (79%) rename index.js => static/index.js (100%) diff --git a/database/schema.sql b/database/DDL.sql similarity index 100% rename from database/schema.sql rename to database/DDL.sql diff --git a/index.php b/index.php index e9b7df6..94c145f 100644 --- a/index.php +++ b/index.php @@ -10,8 +10,8 @@ $handler = new RequestHandler($request); $handler->registerRoutes([ new Route('GET', 'products', ['ProductList\View\Product', 'listAll']), - new Route('GET', 'add-product', function() { readfile('add-product.html'); }), - new Route('GET', '', function() { readfile('index.html'); }), + new Route('GET', 'add-product', function() { readfile('static/add-product.html'); }), + new Route('GET', '', function() { readfile('static/index.html'); }), ]); $handler->handle(); diff --git a/add-product.html b/static/add-product.html similarity index 84% rename from add-product.html rename to static/add-product.html index 161c86a..5024d2e 100644 --- a/add-product.html +++ b/static/add-product.html @@ -1,7 +1,7 @@ - + Product Add diff --git a/index.css b/static/index.css similarity index 100% rename from index.css rename to static/index.css diff --git a/index.html b/static/index.html similarity index 79% rename from index.html rename to static/index.html index 258270e..58e02f0 100644 --- a/index.html +++ b/static/index.html @@ -2,7 +2,7 @@ - + Product List @@ -16,5 +16,5 @@
- + diff --git a/index.js b/static/index.js similarity index 100% rename from index.js rename to static/index.js