fix(api): keep the harvest download route literal for schema generation (#1980)

This commit is contained in:
Hampus
2026-08-24 14:55:11 +02:00
committed by GitHub
parent bd4117fa0a
commit af82974c8a
2 changed files with 2 additions and 3 deletions
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {Readable} from 'node:stream';
import {HARVEST_DOWNLOAD_PATH} from '@app/api/user/services/HarvestDownloadUrl';
import {HarvestIdParam, MessageIdParam} from '@fluxer/schema/src/domains/common/CommonParamSchemas';
import {MessageListResponse} from '@fluxer/schema/src/domains/message/MessageResponseSchemas';
import {
@@ -272,7 +271,7 @@ export function UserContentController(app: HonoApp) {
},
);
app.get(
`${HARVEST_DOWNLOAD_PATH}/:harvestId`,
'/harvest-downloads/:harvestId',
RateLimitMiddleware(RateLimitConfigs.USER_HARVEST_DOWNLOAD_FILE),
Validator('param', HarvestIdParam),
OpenAPI({
@@ -4,7 +4,7 @@ import {Config} from '../../Config';
import type {IStorageService} from '../../infrastructure/IStorageService';
import {signHarvestDownloadToken} from './HarvestDownloadToken';
export const HARVEST_DOWNLOAD_PATH = '/harvest-downloads';
const HARVEST_DOWNLOAD_PATH = '/harvest-downloads';
export async function buildHarvestDownloadUrl(params: {
userId: bigint;