Skip to content

Commit

Permalink
add route: /api-docs with api documentation for users
Browse files Browse the repository at this point in the history
  • Loading branch information
hankmander committed May 7, 2024
1 parent c05ef22 commit 81828b6
Show file tree
Hide file tree
Showing 4 changed files with 2,155 additions and 125 deletions.
15 changes: 15 additions & 0 deletions app/components/ReactSwagger.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client';

import { useEffect, useState } from 'react';
import SwaggerUI from 'swagger-ui-react';
import 'swagger-ui-react/swagger-ui.css';

type Props = {
spec: Record<string, any>,
};

function ReactSwagger ({ spec }: Props) {
return <SwaggerUI spec={spec} />;
}

export default ReactSwagger;
Loading

0 comments on commit 81828b6

Please sign in to comment.