aboutsummaryrefslogtreecommitdiff
path: root/src/groups/user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/groups/user.ts')
-rw-r--r--src/groups/user.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/groups/user.ts b/src/groups/user.ts
index b8518dc..e0c7359 100644
--- a/src/groups/user.ts
+++ b/src/groups/user.ts
@@ -1,8 +1,11 @@
-import type { Group, Context } from "https://deno.land/x/abc@master/mod.ts";
+import type { Group } from "https://deno.land/x/abc@master/mod.ts";
import * as handlers from "../handler/user.ts";
export default function (g: Group) {
- g.get("/:name", handlers.index);
+ g.get("/login", handlers.renderLogin);
g.post("/register", handlers.register);
g.post("/login", handlers.login);
+ g.any("/logout", handlers.logout);
+ g.put("/theme", handlers.changeTheme);
+ g.put("/password", handlers.updatePassword);
}