add blog retrieving
This commit is contained in:
parent
d406369b61
commit
6386694d02
@ -2,10 +2,24 @@
|
||||
<div class="">Blogs</div>
|
||||
</template>
|
||||
<script>
|
||||
import { ContentApi } from '../../utils/index'
|
||||
export default {
|
||||
name: 'Blogs',
|
||||
components: {},
|
||||
computed: {},
|
||||
methods: {}
|
||||
mounted() {
|
||||
this.retrieve_blogs()
|
||||
},
|
||||
methods: {
|
||||
retrieve_blogs() {
|
||||
ContentApi.retrieve_blogs()
|
||||
.then((response) => {
|
||||
response
|
||||
})
|
||||
.catch((error) => {
|
||||
this.mnx_backendErrorHandler(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</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 { DocumentApi } from './document'
|
||||
export { HistoryApi } from './history'
|
||||
export { ContentApi } from './content'
|
||||
|
||||
@ -6,7 +6,8 @@ export {
|
||||
ProviderHubApi,
|
||||
MessageHubApi,
|
||||
DocumentApi,
|
||||
HistoryApi
|
||||
HistoryApi,
|
||||
ContentApi
|
||||
} from './backend/index'
|
||||
|
||||
export { userUtils, userProfileUtils, requestIssueUtils, requestHubUtils } from './store/index'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user