feat(backend): add location router with tRPC factory pattern

- Add createLocationRouter with location.update mutation
- Refactor tRPC to factory pattern (createTRPC, createTRPCRouter)
- Protected procedure by default (all routes require auth)
- Replace zod with arktype for input validation
- Wire location router in main() with dependency injection

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-01-25 22:47:53 +00:00
parent bd6cc3c963
commit 949b7c8571
6 changed files with 104 additions and 46 deletions

View File

@@ -14,10 +14,10 @@
"@aris/source-weatherkit": "workspace:*",
"@hono/trpc-server": "^0.3",
"@trpc/server": "^11",
"arktype": "^2.1.29",
"better-auth": "^1",
"hono": "^4",
"pg": "^8",
"zod": "^3"
"pg": "^8"
},
"devDependencies": {
"@types/pg": "^8"