This repository has been archived on 2026-08-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
onlypets/backend/src/feed/feed.controller.ts
T
admin 5b66e57d2e feat(backend): add /feed endpoint mirrored from /posts
- Introduced FeedModule with controller and service
- /feed mirrors /posts 1:1 (baseline, deterministic)
- No discovery or random logic yet
- Prisma + DI fully wired and stable
- Backend now frontend-ready for feed consumption
2025-12-27 10:46:05 +01:00

14 lines
376 B
TypeScript

import { Controller, Get, Req } from '@nestjs/common';
import { FeedService } from './feed.service';
import { AuthRequest } from '../auth/types/auth-request';
@Controller('feed')
export class FeedController {
constructor(private readonly feedService: FeedService) {}
@Get()
async getFeed(@Req() req: AuthRequest) {
return this.feedService.getFeed(req.user);
}
}