add: register page

This commit is contained in:
2023-11-27 15:32:17 +01:00
parent 6a4e161d71
commit a965adfdce
5 changed files with 97 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import PostView from "./views/PostView.js";
import Settings from "./views/Settings.js";
import { Client } from "./api/client.js";
import RegisterView from "./views/accounts/RegisterView.js";
let client = new Client(location.protocol + "//" + location.host)
@ -31,6 +32,7 @@ const router = async () => {
{ path: "/posts/:id", view: PostView },
{ path: "/settings", view: Settings },
{ path: "/login", view: LoginView },
{ path: "/register", view: RegisterView },
];
// Test each route for potential match