Moved all current routes to individual folders which use a class system and inherit from an interface. Moved rest of the files for a better structure and for readability. Each editable cms should have its own folder with a routes class file and data class file

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2023-06-08 15:10:27 +01:00
parent fb75dd2255
commit a3eb4678f9
26 changed files with 1189 additions and 931 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
document.addEventListener("DOMContentLoaded", _ =>
{
// check if the user is logged in and if so load the editor
// check if the userData is logged in and if so load the editor
fetch("/api/user/isLoggedIn").then(res =>
{
if (res.ok)