1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Clean up and consolidate article API directories (#54509)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Hector Alfaro
2025-02-21 11:51:59 -05:00
committed by GitHub
parent 21e4f91a80
commit 5e1e25ac55
6 changed files with 12 additions and 9 deletions

10
src/article-api/README.md Normal file
View File

@@ -0,0 +1,10 @@
# Article API
This subject folder contains the code for the Article API endpoints:
- `/api/pagelist`
- `/api/article/body`
- `/api/article/meta`
## What it does
Article API endpoints allow consumers to query GitHub Docs for listings of current articles, and for specific article information.

View File

@@ -6,7 +6,7 @@ import anchorRedirect from '@/rest/api/anchor-redirect.js'
import aiSearch from '@/search/middleware/ai-search'
import search from '@/search/middleware/search-routes.js'
import pageInfo from '@/pageinfo/middleware'
import pageList from '@/pagelist/middleware'
import pageList from '@/article-api/middleware/pagelist'
import webhooks from '@/webhooks/middleware/webhooks.js'
import { ExtendedRequest } from '@/types'
import { noCacheControl } from './cache-control'

View File

@@ -1,7 +0,0 @@
# Pagelist
This subject folder contains the code for the `/api/pagelist` endpoint.
## What it does
The `/api/pagelist` endpoint provides a flat structure of all the pages on GitHub Docs.