add: register page
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user