Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
bdc13137
Commit
bdc13137
authored
Dec 28, 2023
by
Timothy J. Baek
Browse files
fix: trailing slash added to api routes
parent
f70fadd7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/lib/apis/auths/index.ts
src/lib/apis/auths/index.ts
+1
-1
src/lib/apis/users/index.ts
src/lib/apis/users/index.ts
+1
-1
No files found.
src/lib/apis/auths/index.ts
View file @
bdc13137
...
...
@@ -3,7 +3,7 @@ import { WEBUI_API_BASE_URL } from '$lib/constants';
export
const
getSessionUser
=
async
(
token
:
string
)
=>
{
let
error
=
null
;
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/auths`
,
{
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/auths
/
`
,
{
method
:
'
GET
'
,
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
...
...
src/lib/apis/users/index.ts
View file @
bdc13137
...
...
@@ -34,7 +34,7 @@ export const updateUserRole = async (token: string, id: string, role: string) =>
export
const
getUsers
=
async
(
token
:
string
)
=>
{
let
error
=
null
;
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/users`
,
{
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/users
/
`
,
{
method
:
'
GET
'
,
headers
:
{
'
Content-Type
'
:
'
application/json
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment