Files
explore/pages/api-docs.tsx
T
tom goriunovandGitHub fab3dd98ff SEO: add canonicals and change meta titles (#1960)
* add canonical link tag

* change title templates

* adjust title for dapps category pages

* change h1 titles

* Revert "adjust title for dapps category pages"

This reverts commit 88ec5228ff839f6559db9bb29922e23334819911.

* fix unit test
2024-05-29 14:37:50 +02:00

24 lines
612 B
TypeScript

import type { NextPage } from 'next';
import React from 'react';
import PageNextJs from 'nextjs/PageNextJs';
import config from 'configs/app';
import SwaggerUI from 'ui/apiDocs/SwaggerUI';
import PageTitle from 'ui/shared/Page/PageTitle';
const Page: NextPage = () => {
return (
<PageNextJs pathname="/api-docs">
<PageTitle
title={ config.meta.seo.enhancedDataEnabled ? `${ config.chain.name } API documentation` : 'API documentation' }
/>
<SwaggerUI/>
</PageNextJs>
);
};
export default Page;
export { apiDocs as getServerSideProps } from 'nextjs/getServerSideProps';