add blog retrieving

This commit is contained in:
Zhigang Wang 2024-06-03 17:28:48 -07:00
parent d406369b61
commit 6386694d02
4 changed files with 33 additions and 2 deletions

View File

@ -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>

View 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 }

View File

@ -6,3 +6,4 @@ export { ProviderHubApi } from './providerHub'
export { MessageHubApi } from './messageHub'
export { DocumentApi } from './document'
export { HistoryApi } from './history'
export { ContentApi } from './content'

View File

@ -6,7 +6,8 @@ export {
ProviderHubApi,
MessageHubApi,
DocumentApi,
HistoryApi
HistoryApi,
ContentApi
} from './backend/index'
export { userUtils, userProfileUtils, requestIssueUtils, requestHubUtils } from './store/index'