Add user authentication and dynamic feature/category inputs

Implement Keycloak authentication, protected routes, and add combobox and autocomplete components for tool categories and features.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 776963d0-f75d-42e2-a57b-cc36bdff8495
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 0b145113-c016-4f54-b000-13bd3b0ba8f0
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0683fb79-a27c-485c-9333-5f4b288c4567/776963d0-f75d-42e2-a57b-cc36bdff8495/z4uWN6A
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
cheffe01
2026-05-25 13:20:15 +00:00
parent e03c51a75e
commit 7abb048edc
22 changed files with 1027 additions and 68 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import {
CreateRatingParams,
CreateRatingBody,
} from "@workspace/api-zod";
import { requireAuth } from "../middleware/auth";
const router: IRouter = Router();
@@ -31,7 +32,7 @@ router.get("/tools/:id/ratings", async (req, res): Promise<void> => {
res.json(ratings);
});
router.post("/tools/:id/ratings", async (req, res): Promise<void> => {
router.post("/tools/:id/ratings", requireAuth, async (req, res): Promise<void> => {
const params = CreateRatingParams.safeParse(req.params);
if (!params.success) {
res.status(400).json({ error: params.error.message });