Update Story apis, move FE to v0 and add v1 for oauth clients

This commit is contained in:
Daniel Supernault 2020-02-04 21:04:58 -07:00
parent e2828f4b85
commit 92654fabdc
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
8 changed files with 23 additions and 14 deletions

View file

@ -30,7 +30,7 @@
methods: {
fetchStories() {
axios.get('/api/stories/v1/recent')
axios.get('/api/stories/v0/recent')
.then(res => {
let data = res.data;
let stories = new Zuck('storyContainer', {
@ -57,7 +57,7 @@
});
data.forEach(d => {
let url = '/api/stories/v1/fetch/' + d.pid;
let url = '/api/stories/v0/fetch/' + d.pid;
axios.get(url)
.then(res => {
res.data.forEach(item => {