static async getAllPlaylist()

in edu-analytics-be/web/app/controller/educatorController.js [37:50]


    static async getAllPlaylist(req, res, next) {
        try {
            const data = await EducatorEntity.getAllPlaylist();
            if (data.length > 0) {
                res.status(200).send(data);
            } else {
                res.status(404).send(data);
            }

        } catch (err) {
            next(err);
        }

    }