Added signup route 👤

This commit is contained in:
Manik Maity
2024-11-07 21:08:08 +05:30
parent a3c5140bb4
commit 8741f40304
12 changed files with 1096 additions and 3 deletions

24
backend/swagger.js Normal file
View File

@@ -0,0 +1,24 @@
import swaggerJSDoc from 'swagger-jsdoc';
// Define Swagger options
const swaggerOptions = {
swaggerDefinition: {
openapi: '3.0.0',
info: {
title: 'LivePoll API',
version: '1.0.0',
description: 'API documentation for LivePoll',
},
servers: [
{
url: 'http://localhost:3000/api/v1', // your server URL
},
],
},
apis: ['./src/routes/v1/*.js'], // Path to the API docs
};
// Initialize swagger-jsdoc
const swaggerDocs = swaggerJSDoc(swaggerOptions);
export default swaggerDocs;