aboutsummaryrefslogtreecommitdiff
path: root/src/groups/user.ts
diff options
context:
space:
mode:
authorMarvin Borner2020-07-18 22:37:00 +0200
committerMarvin Borner2020-07-18 22:38:45 +0200
commitaccb147b54bc99e5cd20059be5cb333031f15885 (patch)
tree8523ad288cb4fbf84acd6a646bd7c04957298bf4 /src/groups/user.ts
parentd3c4b447c3d882a77282e32d9e12d7c3d4f034a2 (diff)
Added user registration
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/groups/user.ts')
-rw-r--r--src/groups/user.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/groups/user.ts b/src/groups/user.ts
index 614e432..b8518dc 100644
--- a/src/groups/user.ts
+++ b/src/groups/user.ts
@@ -1,7 +1,8 @@
import type { Group, Context } from "https://deno.land/x/abc@master/mod.ts";
-// import type { Group, Context } from "../abc/mod.ts";
import * as handlers from "../handler/user.ts";
export default function (g: Group) {
g.get("/:name", handlers.index);
+ g.post("/register", handlers.register);
+ g.post("/login", handlers.login);
}