1
0

archive.js 421 B

12345678910111213141516171819202122
  1. /**
  2. * 归档接口
  3. * @see https://api.halo.run/content-api.html#tag/archive-controlle
  4. */
  5. import HttpHandler from '@/common/http/request.js'
  6. export default {
  7. /**
  8. * 获取归档列表(按月)
  9. */
  10. getMonthArchives: () => {
  11. return HttpHandler.Get(`/api/content/archives/months`)
  12. },
  13. /**
  14. * 获取归档列表(按年)
  15. */
  16. getYearArchives: () => {
  17. return HttpHandler.Get(`/api/content/archives/years`)
  18. },
  19. }