mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00: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);
|
||
|
|
}
|
||
|
|
}
|