From 950217ed3ca93a0aa0e964c2a8474ffc13c71912 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Dec 2025 05:28:29 +0900 Subject: feat(auth): add user registration endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement POST /api/auth/register endpoint with: - Argon2 password hashing - Zod validation for username (1-255 chars) and password (8-255 chars) - Duplicate username check (returns 409 Conflict) - Returns created user with id, username, and createdAt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/server/src/routes/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 pkgs/server/src/routes/index.ts (limited to 'pkgs/server/src/routes/index.ts') diff --git a/pkgs/server/src/routes/index.ts b/pkgs/server/src/routes/index.ts new file mode 100644 index 0000000..2925e6d --- /dev/null +++ b/pkgs/server/src/routes/index.ts @@ -0,0 +1 @@ +export { auth } from "./auth"; -- cgit v1.2.3-70-g09d2