diff options
author | LarsVomMars | 2020-07-30 20:14:56 +0200 |
---|---|---|
committer | LarsVomMars | 2020-07-30 20:14:56 +0200 |
commit | 86c68c3648c94ca9f66f3eb408973368bed28681 (patch) | |
tree | 6d1def94caea53c3de4eb741eb113d7812b000a7 /src/groups | |
parent | 14aea28ac22e5d2e9e510c5986daca1bef1c43ae (diff) |
Added user handlers
Diffstat (limited to 'src/groups')
-rw-r--r-- | src/groups/user.ts | 7 |
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); } |