-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type {NextApiRequest, NextApiResponse} from 'next' | ||
|
||
export default function handler(_: NextApiRequest, res: NextApiResponse) { | ||
// https://github.com/stoplightio/elements | ||
res.status(200).send(` | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>Elements in HTML</title> | ||
<!-- Embed elements Elements via Web Component --> | ||
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css"> | ||
</head> | ||
<body> | ||
<elements-api | ||
apiDescriptionUrl="/api/v0/openapi.json" | ||
router="hash" | ||
layout="sidebar" | ||
/> | ||
</body> | ||
</html> | ||
`) | ||
} |