UNPKG

camera.ui

Version:

NVR like user interface for RTSP capable cameras.

42 lines (38 loc) 954 B
'use-strict'; import fs from 'fs-extra'; import path from 'path'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const packageJson = fs.readJsonSync(path.resolve(__dirname, '../../../package.json')); export default { definition: { openapi: '3.0.0', info: { title: 'camera.ui API', description: '', version: packageJson.version, contact: { name: 'camera.ui', url: 'https://github.com/SeydX/camera.ui', }, }, tags: [], servers: [], components: { securitySchemes: { bearerAuth: { type: 'oauth2', scheme: 'bearer', bearerFormat: 'JWT', flows: { password: { tokenUrl: '/api/auth/login', scopes: null, }, }, }, }, }, }, apis: [`${path.resolve(__dirname, '..')}/components/**/*.routes.js`], };