diff --git a/app/lib/App/Core/AccessControl.php b/app/lib/App/Core/AccessControl.php
index 39c667e..761ea04 100644
--- a/app/lib/App/Core/AccessControl.php
+++ b/app/lib/App/Core/AccessControl.php
@@ -23,7 +23,7 @@ class AccessControl
// routes that need power level 1 and up
[
"routes" => [
- "teamtable/edit/"
+ "race/"
],
"catcher" => [
"name" => "page",
diff --git a/app/view/pages/simulator.php b/app/view/pages/race/simulator.php
similarity index 100%
rename from app/view/pages/simulator.php
rename to app/view/pages/race/simulator.php
diff --git a/app/view/pages/teamtable/edit/delete.php b/app/view/pages/race/teamtable/edit/delete.php
similarity index 100%
rename from app/view/pages/teamtable/edit/delete.php
rename to app/view/pages/race/teamtable/edit/delete.php
diff --git a/app/view/pages/teamtable/edit/index.php b/app/view/pages/race/teamtable/edit/index.php
similarity index 100%
rename from app/view/pages/teamtable/edit/index.php
rename to app/view/pages/race/teamtable/edit/index.php
diff --git a/app/view/pages/teamtable/edit/update.php b/app/view/pages/race/teamtable/edit/update.php
similarity index 100%
rename from app/view/pages/teamtable/edit/update.php
rename to app/view/pages/race/teamtable/edit/update.php
diff --git a/app/view/template/header.php b/app/view/template/header.php
index 0fb4ab0..cd4f9f3 100644
--- a/app/view/template/header.php
+++ b/app/view/template/header.php
@@ -44,8 +44,8 @@
user->powerLevel > 0): ?>
Tillatelser
diff --git a/public/simulator.php b/public/race/simulator.php
similarity index 92%
rename from public/simulator.php
rename to public/race/simulator.php
index 9818a36..19402db 100644
--- a/public/simulator.php
+++ b/public/race/simulator.php
@@ -1,4 +1,4 @@
-view('template/header', ['title' => 'Simulator']);
-$app->view('pages/simulator');
+$app->view('pages/race/simulator');
$app->view('template/footer');
\ No newline at end of file
diff --git a/public/teamtable/edit/delete.php b/public/race/teamtable/edit/delete.php
similarity index 85%
rename from public/teamtable/edit/delete.php
rename to public/race/teamtable/edit/delete.php
index 6c85ff7..fd0e0b5 100644
--- a/public/teamtable/edit/delete.php
+++ b/public/race/teamtable/edit/delete.php
@@ -1,4 +1,4 @@
-view('template/header', ['title' => 'Bekreft sletting']);
- $app->view('pages/teamtable/edit/delete', ['team' => $team]);
+ $app->view('pages/race/teamtable/edit/delete', ['team' => $team]);
$app->view('template/footer');
die();
}
diff --git a/public/race/teamtable/edit/index.php b/public/race/teamtable/edit/index.php
new file mode 100644
index 0000000..39578c2
--- /dev/null
+++ b/public/race/teamtable/edit/index.php
@@ -0,0 +1,9 @@
+model('Teamtable');
+
+$teams = $model->getAll();
+
+$app->view('template/header', ['title' => 'Endre lagtabell']);
+$app->view('pages/race/teamtable/edit/index', ["teams" => $teams]);
+$app->view('template/footer');
\ No newline at end of file
diff --git a/public/teamtable/edit/update.php b/public/race/teamtable/edit/update.php
similarity index 92%
rename from public/teamtable/edit/update.php
rename to public/race/teamtable/edit/update.php
index db7c8b6..ed6847a 100644
--- a/public/teamtable/edit/update.php
+++ b/public/race/teamtable/edit/update.php
@@ -1,4 +1,4 @@
-view('template/header', [
'title' => $title
]);
- $app->view('pages/teamtable/edit/update', [
+ $app->view('pages/race/teamtable/edit/update', [
"team" => $team,
"title" => $title
]);
@@ -79,7 +79,7 @@ $title = "Legg til lag";
$app->view('template/header', [
'title' => $title
]);
-$app->view('pages/teamtable/edit/update', [
+$app->view('pages/race/teamtable/edit/update', [
"team" => new Team,
"title" => $title
]);
diff --git a/public/race/teamtable/index.php b/public/race/teamtable/index.php
new file mode 100644
index 0000000..0b52cb6
--- /dev/null
+++ b/public/race/teamtable/index.php
@@ -0,0 +1,4 @@
+redirect('edit/');
\ No newline at end of file
diff --git a/public/teamtable/edit/index.php b/public/teamtable/edit/index.php
deleted file mode 100644
index dbe082b..0000000
--- a/public/teamtable/edit/index.php
+++ /dev/null
@@ -1,9 +0,0 @@
-model('Teamtable');
-
-$teams = $model->getAll();
-
-$app->view('template/header', ['title' => 'Endre lagtabell']);
-$app->view('pages/teamtable/edit/index', ["teams" => $teams]);
-$app->view('template/footer');
\ No newline at end of file
diff --git a/public/teamtable/index.php b/public/teamtable/index.php
deleted file mode 100644
index b92cbfc..0000000
--- a/public/teamtable/index.php
+++ /dev/null
@@ -1,4 +0,0 @@
-redirect('edit/');
\ No newline at end of file