✨ Basic posting
This commit is contained in:
13
DysonNetwork.Sphere/Client/src/stores/pub.ts
Normal file
13
DysonNetwork.Sphere/Client/src/stores/pub.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const usePubStore = defineStore('pub', () => {
|
||||
const publishers = ref<any[]>([])
|
||||
|
||||
async function fetchPublishers() {
|
||||
const resp = await fetch('/api/publishers')
|
||||
publishers.value = await resp.json()
|
||||
}
|
||||
|
||||
return { publishers, fetchPublishers }
|
||||
})
|
Reference in New Issue
Block a user