Update Story apis, move FE to v0 and add v1 for oauth clients
This commit is contained in:
parent
e2828f4b85
commit
92654fabdc
8 changed files with 23 additions and 14 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue