mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-24 22:12:34 +00:00
chore: update frontend build for v1.1.81 [skip ci]
This commit is contained in:
15
web/admin-spa/node_modules/axios/lib/helpers/combineURLs.js
generated
vendored
Normal file
15
web/admin-spa/node_modules/axios/lib/helpers/combineURLs.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Creates a new URL by combining the specified URLs
|
||||
*
|
||||
* @param {string} baseURL The base URL
|
||||
* @param {string} relativeURL The relative URL
|
||||
*
|
||||
* @returns {string} The combined URL
|
||||
*/
|
||||
export default function combineURLs(baseURL, relativeURL) {
|
||||
return relativeURL
|
||||
? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
||||
: baseURL;
|
||||
}
|
||||
Reference in New Issue
Block a user