[MOD] Declare versions v1.2-v1.6 alongside v1.7

This should increase compatibility with some clients still not supporting v1.7(like Nheko).
This commit is contained in:
lda 2023-11-30 09:06:51 -05:00 committed by lda
parent 3c11d666c8
commit e8b4ef135d

View file

@ -37,10 +37,14 @@ ROUTE_IMPL(RouteVersions, path, argp)
(void) argp; (void) argp;
#define DECLARE_SPEC_VERSION(x) ArrayAdd(versions, JsonValueString(x)) #define DECLARE_SPEC_VERSION(x) ArrayAdd(versions, JsonValueString(x))
DECLARE_SPEC_VERSION("v1.2");
DECLARE_SPEC_VERSION("v1.3");
DECLARE_SPEC_VERSION("v1.4");
DECLARE_SPEC_VERSION("v1.5"); DECLARE_SPEC_VERSION("v1.5");
DECLARE_SPEC_VERSION("v1.6");
/* The curently supported version. */
DECLARE_SPEC_VERSION("v1.7"); DECLARE_SPEC_VERSION("v1.7");
/* Declare additional spec version support here. */
#undef DECLARE_SPEC_VERSION #undef DECLARE_SPEC_VERSION