add blog retrieving
This commit is contained in:
parent
d406369b61
commit
6386694d02
@ -2,10 +2,24 @@
|
|||||||
<div class="">Blogs</div>
|
<div class="">Blogs</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { ContentApi } from '../../utils/index'
|
||||||
export default {
|
export default {
|
||||||
name: 'Blogs',
|
name: 'Blogs',
|
||||||
components: {},
|
components: {},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {}
|
mounted() {
|
||||||
|
this.retrieve_blogs()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
retrieve_blogs() {
|
||||||
|
ContentApi.retrieve_blogs()
|
||||||
|
.then((response) => {
|
||||||
|
response
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.mnx_backendErrorHandler(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
15
frontend/src/utils/backend/content.js
Normal file
15
frontend/src/utils/backend/content.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { backendAxios } from './axios'
|
||||||
|
class ContentApi {
|
||||||
|
static retrieve_blogs() {
|
||||||
|
const request = backendAxios.post(
|
||||||
|
'/api/content/retrieve-blogs',
|
||||||
|
{
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
)
|
||||||
|
return request
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export { ContentApi }
|
||||||
@ -6,3 +6,4 @@ export { ProviderHubApi } from './providerHub'
|
|||||||
export { MessageHubApi } from './messageHub'
|
export { MessageHubApi } from './messageHub'
|
||||||
export { DocumentApi } from './document'
|
export { DocumentApi } from './document'
|
||||||
export { HistoryApi } from './history'
|
export { HistoryApi } from './history'
|
||||||
|
export { ContentApi } from './content'
|
||||||
|
|||||||
@ -6,7 +6,8 @@ export {
|
|||||||
ProviderHubApi,
|
ProviderHubApi,
|
||||||
MessageHubApi,
|
MessageHubApi,
|
||||||
DocumentApi,
|
DocumentApi,
|
||||||
HistoryApi
|
HistoryApi,
|
||||||
|
ContentApi
|
||||||
} from './backend/index'
|
} from './backend/index'
|
||||||
|
|
||||||
export { userUtils, userProfileUtils, requestIssueUtils, requestHubUtils } from './store/index'
|
export { userUtils, userProfileUtils, requestIssueUtils, requestHubUtils } from './store/index'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user