Skip to content

Commit

Permalink
Update URL to final production URL endpoint (qmk#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanfali authored Apr 27, 2020
1 parent 48c9bc9 commit 8800b05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/store/modules/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const backend_status_url = `${backend_baseurl}/v1`;
export const backend_readme_url_template = template(
`${backend_keyboards_url}/<%= keyboard %>/readme`
);
export const backend_skeletons_url = `${backend_baseurl}/v1/skeletons`;
export const PREVIEW_LABEL = 'Preview info.json';
3 changes: 2 additions & 1 deletion src/store/modules/keymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import isUndefined from 'lodash/isUndefined';
import colorways from '@/components/colorways';
import defaults from './config';
import axios from 'axios';
import { backend_skeletons_url } from './constants';

const state = {
keymap: [[]], // array of arrays
Expand Down Expand Up @@ -169,7 +170,7 @@ const actions = {
},
initTemplates({ commit }) {
return axios
.get('https://api.clueboard.co/v1/skeletons/keymap')
.get(`${backend_skeletons_url}/keymap`)
.then(resp => {
if (resp.status === 200) {
let template = Object.assign({}, resp.data);
Expand Down

0 comments on commit 8800b05

Please sign in to comment.