frontend: add config for endpoints
Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
parent
ddc6c64f0f
commit
bfaa1c0014
7 changed files with 19 additions and 7 deletions
|
|
@ -3,9 +3,10 @@ import { ref } from 'vue'
|
|||
import { formatRelative } from 'date-fns'
|
||||
import { fr } from 'date-fns/locale'
|
||||
import { marked } from 'marked'
|
||||
import { API_BASE_URL } from '@/config.js'
|
||||
|
||||
export const usePostsStore = defineStore('posts', () => {
|
||||
const postsApiPath = 'http://localhost:8080/posts'
|
||||
const postsApiPath = API_BASE_URL + '/posts'
|
||||
|
||||
const posts = ref([])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue