import Box from '@mui/material/Box'; import Container from '@mui/material/Container'; import { CONFIG } from '../global-config'; import { Block, Section, TitleBlock } from './(components)/elements'; // ---------------------------------------------------------------------- const sections = [ { title: 'Auth', content: ( <> ), }, { title: 'Product', content: ( <> /api/product/details?productId={`{productId}`} } /> /api/product/search?query={`{query}`} } /> ), }, { title: 'Blog', content: ( <> /api/post/details?title={`{title}`} } /> /api/post/latest?title={`{title}`} } /> /api/post/search?query={`{query}`} } /> ), }, { title: 'Calendar', content: ( <> ), }, { title: 'Kanban', content: ( <> /api/kanban?endpoint=create-column } /> /api/kanban?endpoint=update-column } /> /api/kanban?endpoint=move-column } /> /api/kanban?endpoint=clear-column } /> /api/kanban?endpoint=delete-column } /> /api/kanban?endpoint=delete-task } /> /api/kanban?endpoint=update-task } /> /api/kanban?endpoint=move-task } /> /api/kanban?endpoint=delete-task } /> ), }, { title: 'Chat', content: ( <> /api/chat?endpoint=contacts } /> /api/chat?endpoint=conversations } /> /api/chat?conversationId={`{conversationId}`}&endpoint= conversation } /> /api/chat?conversationId={`{conversationId}`}&endpoint= mark-as-seen } /> ), }, { title: 'Mail', content: ( <> /api/mail/list?labelId={`{labelId}`} } /> /api/mail/details?mailId={`{mailId}`} } /> ), }, { title: 'Navigation', content: , }, { title: 'Pagination', content: ( /api/pagination?page={`{page}`}&perPage= {`{perPage}`} } /> ), }, ]; export default async function Page() { return ( Current server API: {CONFIG.basePath} } /> {sections.map((section) => (
{section.content}
))}
); }