Clean up and consolidate article API directories (#54509)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
10
src/article-api/README.md
Normal file
10
src/article-api/README.md
Normal 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.
|
||||
@@ -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'
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user