Generalise BASE_URL

master
Raymonzut 4 years ago
parent 5053753639
commit 874540a43d
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 2
      client/src/remote.js

@ -1,6 +1,6 @@
module.exports = {
getPosts: function(id) {
const BASE_URL = 'http://localhost:5000/api/posts'
const BASE_URL = '/api/posts'
const URL = BASE_URL + (id ? `/${id}` : '?sort=-1')
this.$http

Loading…
Cancel
Save