Update api version to v4

This commit is contained in:
shamoon 2024-01-05 21:35:40 -08:00
parent ef335517ce
commit fae0e3b405
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ const base_url = new URL(document.baseURI)
export const environment = { export const environment = {
production: true, production: true,
apiBaseUrl: document.baseURI + 'api/', apiBaseUrl: document.baseURI + 'api/',
apiVersion: '3', apiVersion: '4',
appTitle: 'Paperless-ngx', appTitle: 'Paperless-ngx',
version: '2.2.0-dev', version: '2.2.0-dev',
webSocketHost: window.location.host, webSocketHost: window.location.host,

View File

@ -5,7 +5,7 @@
export const environment = { export const environment = {
production: false, production: false,
apiBaseUrl: 'http://localhost:8000/api/', apiBaseUrl: 'http://localhost:8000/api/',
apiVersion: '3', apiVersion: '4',
appTitle: 'Paperless-ngx', appTitle: 'Paperless-ngx',
version: 'DEVELOPMENT', version: 'DEVELOPMENT',
webSocketHost: 'localhost:8000', webSocketHost: 'localhost:8000',

View File

@ -319,7 +319,7 @@ REST_FRAMEWORK = {
"DEFAULT_VERSION": "1", "DEFAULT_VERSION": "1",
# Make sure these are ordered and that the most recent version appears # Make sure these are ordered and that the most recent version appears
# last # last
"ALLOWED_VERSIONS": ["1", "2", "3"], "ALLOWED_VERSIONS": ["1", "2", "3", "4"],
} }
if DEBUG: if DEBUG: