Reorganize files

This commit is contained in:
Augusto Gunsch 2022-07-28 07:23:22 +02:00
parent 922b29519a
commit 40b7d51b39
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
6 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -1,7 +1,7 @@
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="index.css"/>
<link rel="stylesheet" href="static/index.css"/>
<title>Product Add</title>
</head>
<body>

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="index.css"/>
<link rel="stylesheet" href="static/index.css"/>
<title>Product List</title>
</head>
<body>
@ -16,5 +16,5 @@
<div id="products">
</div>
</body>
<script src="index.js"></script>
<script src="static/index.js"></script>
</html>