Reorganize files
This commit is contained in:
parent
922b29519a
commit
40b7d51b39
|
@ -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();
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue