forked from open-webui/open-webui
		
	fix: trailing slash added to api routes
This commit is contained in:
		
							parent
							
								
									f70fadd70c
								
							
						
					
					
						commit
						bdc131378f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -3,7 +3,7 @@ import { WEBUI_API_BASE_URL } from '$lib/constants'; | ||||||
| export const getSessionUser = async (token: string) => { | export const getSessionUser = async (token: string) => { | ||||||
| 	let error = null; | 	let error = null; | ||||||
| 
 | 
 | ||||||
| 	const res = await fetch(`${WEBUI_API_BASE_URL}/auths`, { | 	const res = await fetch(`${WEBUI_API_BASE_URL}/auths/`, { | ||||||
| 		method: 'GET', | 		method: 'GET', | ||||||
| 		headers: { | 		headers: { | ||||||
| 			'Content-Type': 'application/json', | 			'Content-Type': 'application/json', | ||||||
|  |  | ||||||
|  | @ -34,7 +34,7 @@ export const updateUserRole = async (token: string, id: string, role: string) => | ||||||
| export const getUsers = async (token: string) => { | export const getUsers = async (token: string) => { | ||||||
| 	let error = null; | 	let error = null; | ||||||
| 
 | 
 | ||||||
| 	const res = await fetch(`${WEBUI_API_BASE_URL}/users`, { | 	const res = await fetch(`${WEBUI_API_BASE_URL}/users/`, { | ||||||
| 		method: 'GET', | 		method: 'GET', | ||||||
| 		headers: { | 		headers: { | ||||||
| 			'Content-Type': 'application/json', | 			'Content-Type': 'application/json', | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek