mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-30 10:05:54 +00:00
14 lines
455 B
TypeScript
14 lines
455 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);
|
|
}
|
|
}
|