From 666be04c1009a241ec72debda82e2d9a15a93c47 Mon Sep 17 00:00:00 2001 From: liuyx <1517482303@qq.com> Date: Wed, 28 Dec 2022 14:38:45 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog/src/api/about.js | 7 +++++++ blog/src/api/category.js | 7 +++++++ blog/src/api/page.js | 7 +++++++ blog/src/api/tag.js | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 blog/src/api/about.js create mode 100644 blog/src/api/category.js create mode 100644 blog/src/api/page.js create mode 100644 blog/src/api/tag.js 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' + }) +}