Reorganize files
This commit is contained in:
parent
922b29519a
commit
40b7d51b39
|
@ -10,8 +10,8 @@ $handler = new RequestHandler($request);
|
||||||
|
|
||||||
$handler->registerRoutes([
|
$handler->registerRoutes([
|
||||||
new Route('GET', 'products', ['ProductList\View\Product', 'listAll']),
|
new Route('GET', 'products', ['ProductList\View\Product', 'listAll']),
|
||||||
new Route('GET', 'add-product', function() { readfile('add-product.html'); }),
|
new Route('GET', 'add-product', function() { readfile('static/add-product.html'); }),
|
||||||
new Route('GET', '', function() { readfile('index.html'); }),
|
new Route('GET', '', function() { readfile('static/index.html'); }),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$handler->handle();
|
$handler->handle();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" href="index.css"/>
|
<link rel="stylesheet" href="static/index.css"/>
|
||||||
<title>Product Add</title>
|
<title>Product Add</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" href="index.css"/>
|
<link rel="stylesheet" href="static/index.css"/>
|
||||||
<title>Product List</title>
|
<title>Product List</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
<div id="products">
|
<div id="products">
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script src="index.js"></script>
|
<script src="static/index.js"></script>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue