changed base url

This commit is contained in:
guwandyk committed 2026-08-04 19:21:21 +05:00
1 parent d297468f80
commit 231e1dbae9
2 files changed
+3 -3

No files matched your search

Executable
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -26,12 +26,12 @@ function removeByClassName(className) {
} }
function baseUrl() { function baseUrl() {
return 'http://localhost:5050'; return 'https://tbbank.gov.tm';
} }
function postData(url = '', data = {}) { function postData(url = '', data = {}) {
return fetch(baseUrl() + url, { return fetch(baseUrl() + url, {
method: 'GET', method: 'POST',
headers: { headers: {
'Accept': 'application/json', 'Accept': 'application/json',
'Content-Type': 'application/json' 'Content-Type': 'application/json'
@@ -120,7 +120,7 @@ async function fetchMenuItems() {
const container = $_ID('menu-items-container') const container = $_ID('menu-items-container')
const sideBarMenuItems = $_ID('sidebar-menu-items') const sideBarMenuItems = $_ID('sidebar-menu-items')
const response = await postData('/api/v1/category/categories') const response = await postData('/api/v1/category/get-no-content')
response.data.forEach(menuItem => { response.data.forEach(menuItem => {
let subcategoriesTemplate = ''; let subcategoriesTemplate = '';