mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Update api version to v4
This commit is contained in:
		@@ -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,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user