From accb147b54bc99e5cd20059be5cb333031f15885 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 18 Jul 2020 22:37:00 +0200 Subject: Added user registration Co-authored-by: LarsVomMars --- src/groups/user.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/groups') 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); } -- cgit v1.2.3