const handlePlay = () => { setPlaying(true); };
const express = require('express'); const app = express(); const mongoose = require('mongoose'); Samadhi 108 rar
const practiceSchema = new mongoose.Schema({ title: String, description: String, videoUrl: String, }); const handlePlay = () => { setPlaying(true); };
const Practice = mongoose.model('Practice', practiceSchema); const handlePlay = () =>
import React, { useState, useEffect } from 'react'; import ReactPlayer from 'react-player';
app.get('/api/practices/:id', (req, res) => { Practice.findById(req.params.id) .then(practice => res.json(practice)) .catch(error => res.status(404).json({ message: 'Practice not found' })); });