mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added music
mode
This commit is contained in:
parent
a9bbef6d02
commit
ac1cfb42d6
17
packages/comty.js/src/models/music/index.js
Normal file
17
packages/comty.js/src/models/music/index.js
Normal file
@ -0,0 +1,17 @@
|
||||
import request from "../../handlers/request"
|
||||
|
||||
export default class MusicModel {
|
||||
static get api_instance() {
|
||||
return globalThis.__comty_shared_state.instances["music"]
|
||||
}
|
||||
|
||||
static getFavorites = async () => {
|
||||
const { data } = await request({
|
||||
instance: MusicModel.api_instance,
|
||||
method: "GET",
|
||||
url: `/tracks/liked`,
|
||||
})
|
||||
|
||||
return data
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user