mirror of
https://github.com/immich-app/immich.git
synced 2026-02-08 18:58:42 +03:00
15 lines
454 B
TypeScript
15 lines
454 B
TypeScript
import { Body, Controller, Post } from '@nestjs/common';
|
|
import { ImageClassifierService } from './image-classifier.service';
|
|
|
|
@Controller('image-classifier')
|
|
export class ImageClassifierController {
|
|
constructor(
|
|
private readonly imageClassifierService: ImageClassifierService,
|
|
) {}
|
|
|
|
@Post('/tagImage')
|
|
async tagImage(@Body('thumbnailPath') thumbnailPath: string) {
|
|
return await this.imageClassifierService.tagImage(thumbnailPath);
|
|
}
|
|
}
|