changed base url

This commit is contained in:
2026-08-04 19:21:21 +05:00
parent d297468f80
commit 231e1dbae9
2 changed files with 3 additions and 3 deletions

BIN
backend/myapp Executable file

Binary file not shown.

View File

@@ -26,12 +26,12 @@ function removeByClassName(className) {
}
function baseUrl() {
return 'http://localhost:5050';
return 'https://tbbank.gov.tm';
}
function postData(url = '', data = {}) {
return fetch(baseUrl() + url, {
method: 'GET',
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
@@ -120,7 +120,7 @@ async function fetchMenuItems() {
const container = $_ID('menu-items-container')
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 => {
let subcategoriesTemplate = '';