changed base url
This commit is contained in:
BIN
backend/myapp
Executable file
BIN
backend/myapp
Executable file
Binary file not shown.
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user