1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Server: Fixed accessing main website (Regression)

This commit is contained in:
Laurent Cozic 2021-06-24 11:00:31 +01:00
parent 5390e100e6
commit f86879778b

View File

@ -5,7 +5,7 @@ import { ErrorPreconditionFailed } from '../utils/errors';
const compareVersions = require('compare-versions'); const compareVersions = require('compare-versions');
export default async function(ctx: AppContext, next: KoaNext): Promise<void> { export default async function(ctx: AppContext, next: KoaNext): Promise<void> {
if (!isApiRequest(ctx)) return; if (!isApiRequest(ctx)) return next();
const appVersion = config().appVersion; const appVersion = config().appVersion;
const minVersion = ctx.headers['x-api-min-version']; const minVersion = ctx.headers['x-api-min-version'];