Skip to content

Commit

Permalink
fix : api 요청 url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujin-nKim committed May 9, 2024
1 parent fcc7280 commit 04ca301
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/main/resources/static/assets/admin/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const APP_KEY = document.querySelector("#appKey").getAttribute("data-contextPath
*/
function fetchPublishersAndUpdateModal() {
$.ajax({
// url: 'http://localhost:8081/publishers',
url: APP_KEY + '/t3t/bookstore/publishers',
url : '/publishers',
type: 'GET',
data: {
pageNo: currentPage,
Expand Down Expand Up @@ -47,8 +46,7 @@ function fetchPublishersAndUpdateModal() {
*/
function fetchParticipantsAndUpdateModal() {
$.ajax({
// url: 'http://localhost:8081/participants',
url: APP_KEY + '/t3t/bookstore/participants',
url: '/participants',
type: 'GET',
data: {
pageNo: currentPage,
Expand Down Expand Up @@ -82,8 +80,7 @@ function fetchParticipantsAndUpdateModal() {
*/
function fetchParticipantRolesAndUpdateModal() {
$.ajax({
// url: 'http://localhost:8081/participantRoles',
url: APP_KEY + '/t3t/bookstore/participantRoles',
url: '/participantRoles',
type: 'GET',
data: {
pageNo: currentPage,
Expand Down Expand Up @@ -116,8 +113,7 @@ function fetchParticipantRolesAndUpdateModal() {
*/
function fetchCategoriesAndUpdateModal(startDepth, maxDepth) {
$.ajax({
// url: 'http://localhost:8081/categories',
url: APP_KEY + '/t3t/bookstore/categories',
url: '/categories',
type: 'GET',
data: {
startDepth: startDepth,
Expand Down Expand Up @@ -148,8 +144,7 @@ function fetchCategoriesAndUpdateModal(startDepth, maxDepth) {
*/
function fetchTagsAndUpdateModal() {
$.ajax({
// url: 'http://localhost:8081/tags',
url: APP_KEY + '/t3t/bookstore/tags',
url: '/tags',
type: 'GET',
data: {
pageNo: currentPage,
Expand Down

0 comments on commit 04ca301

Please sign in to comment.