import { customAxios } from "@src/lib/customAxios" ; const albumApi = { createAlbum : ( albumName , groupId ) => { const URL = `/api/albums` ; const params = { albumName , groupId } ; return customAxios . post ( URL , params ) ; } , updateAlbum : ( albumName , albumId ) => { const URL = `/api/albums/${ albumId }` ; const params = { albumName } ; return customAxios . put ( URL , params ) ; } , deleteAlbum : ( albumId ) => { const URL = `/api/albums/${ albumId }` ; return customAxios . delete ( URL ) ; } , updateAlbumOrder : ( groupId , albumOrder ) => { const URL = `/api/groups/${ groupId }/albumorder` ; const params = { albumOrder } ; return customAxios . put ( URL , params ) ; } , postShiftAlbum : ( postId , albumId ) => { const URL = `/api/posts/${ postId }/shift` ; const params = { albumId } ; return customAxios . put ( URL , params ) ; } , } ; export default albumApi ;