Added Tab Bar, search bar and suggested search terms from assets metadata, tags (#35)

This commit is contained in:
Alex 2022-02-27 12:43:29 -06:00 committed by GitHub
parent f181dba964
commit bfde308492
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 487 additions and 39 deletions

View file

@ -71,6 +71,11 @@ export class AssetController {
return this.assetService.serveFile(authUser, query, res, headers);
}
@Get('/searchTerm')
async getAssetSearchTerm(@GetAuthUser() authUser: AuthUserDto) {
return this.assetService.getAssetSearchTerm(authUser);
}
@Get('/new')
async getNewAssets(@GetAuthUser() authUser: AuthUserDto, @Query(ValidationPipe) query: GetNewAssetQueryDto) {
return await this.assetService.getNewAssets(authUser, query.latestDate);