diff --git a/blog/src/api/about.js b/blog/src/api/about.js new file mode 100644 index 0000000..0f2b054 --- /dev/null +++ b/blog/src/api/about.js @@ -0,0 +1,7 @@ +import request from '../utils/request.js' + +export const getAboutContent = () => { + return request({ + url: '/about' + }) +} diff --git a/blog/src/api/category.js b/blog/src/api/category.js new file mode 100644 index 0000000..4ee6905 --- /dev/null +++ b/blog/src/api/category.js @@ -0,0 +1,7 @@ +import request from '../utils/request' + +export const getCategoryList = () => { + return request({ + url: '/categories' + }) +} diff --git a/blog/src/api/page.js b/blog/src/api/page.js new file mode 100644 index 0000000..c8c0f57 --- /dev/null +++ b/blog/src/api/page.js @@ -0,0 +1,7 @@ +import request from '@/utils/request.js' + +export const getPageByName = (pageName) => { + return request({ + url: `/pages/${pageName}` + }) +} diff --git a/blog/src/api/tag.js b/blog/src/api/tag.js new file mode 100644 index 0000000..d19c286 --- /dev/null +++ b/blog/src/api/tag.js @@ -0,0 +1,7 @@ +import request from '../utils/request' + +export const getTagList = () => { + return request({ + url: '/tags' + }) +}