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:
parent
5390e100e6
commit
f86879778b
@ -5,7 +5,7 @@ import { ErrorPreconditionFailed } from '../utils/errors';
|
||||
const compareVersions = require('compare-versions');
|
||||
|
||||
export default async function(ctx: AppContext, next: KoaNext): Promise<void> {
|
||||
if (!isApiRequest(ctx)) return;
|
||||
if (!isApiRequest(ctx)) return next();
|
||||
|
||||
const appVersion = config().appVersion;
|
||||
const minVersion = ctx.headers['x-api-min-version'];
|
||||
|
Loading…
Reference in New Issue
Block a user