Skip to content

backend: use structured response modeling in public profile endpoint #21

@ShantKhatri

Description

@ShantKhatri

Summary

In apps/backend/src/routes/public.ts, add a dedicated type interface for public profile responses and use it in the route.

Tasks

  • create type PublicProfileResponse = { ... } in public.ts or shared type file.
  • return typed object from profile endpoint.
  • add comment and small API docs snippet.

Acceptance Criteria

  • compile-time type safety for this route.
  • encourages consistent API contracts.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions