mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 08:26:41 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import { Controller, Get, Post, Delete, Body, Param, UseGuards, Query } from '@nestjs/common';
|
|
import { FeedbackService } from './feedback.service';
|
|
import { AuthGuard, CurrentUser } from '@mana-core/nestjs-integration';
|
|
import { CreateFeedbackDto, FeedbackQueryDto } from './dto/feedback.dto';
|
|
import { JwtPayload } from '../types/jwt-payload.interface';
|
|
|
|
@Controller('feedback')
|
|
@UseGuards(AuthGuard)
|
|
export class FeedbackController {
|
|
constructor(private readonly feedbackService: FeedbackService) {}
|
|
|
|
@Post()
|
|
async createFeedback(
|
|
@CurrentUser() user: JwtPayload,
|
|
@Body() createFeedbackDto: CreateFeedbackDto
|
|
) {
|
|
return this.feedbackService.createFeedback(user.sub, createFeedbackDto);
|
|
}
|
|
|
|
@Get('public')
|
|
async getPublicFeedback(@CurrentUser() user: JwtPayload, @Query() query: FeedbackQueryDto) {
|
|
return this.feedbackService.getPublicFeedback(user.sub, query);
|
|
}
|
|
|
|
@Get('my')
|
|
async getMyFeedback(@CurrentUser() user: JwtPayload) {
|
|
return this.feedbackService.getMyFeedback(user.sub);
|
|
}
|
|
|
|
@Post(':id/vote')
|
|
async voteFeedback(@CurrentUser() user: JwtPayload, @Param('id') feedbackId: string) {
|
|
return this.feedbackService.voteFeedback(user.sub, feedbackId);
|
|
}
|
|
|
|
@Delete(':id/vote')
|
|
async unvoteFeedback(@CurrentUser() user: JwtPayload, @Param('id') feedbackId: string) {
|
|
return this.feedbackService.unvoteFeedback(user.sub, feedbackId);
|
|
}
|
|
}
|