feat: enhance API and middleware functionality: add public API routes, implement program and course member checks, and improve rate limiting for invite acceptance. Update OpenAPI spec generation to focus on public API endpoints and add new middleware for automation key scopes. Include new documentation for lesson AI features and public API tests.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { getHtmlDocument } from '@scalar/core/libs/html-rendering';
|
||||
|
||||
const publicApiSpecUrl = 'https://api.cdn.clsrio.com/openapi/public-api/openapi-latest.json';
|
||||
|
||||
export function loader() {
|
||||
return new Response(
|
||||
getHtmlDocument({
|
||||
url: publicApiSpecUrl,
|
||||
pageTitle: 'ClassroomIO Public API Reference',
|
||||
theme: 'none'
|
||||
}),
|
||||
{
|
||||
headers: {
|
||||
'content-type': 'text/html; charset=utf-8'
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user