IKHSAN
ENID Baca dalam Bahasa Indonesia

pixies

Public
Branch
master
Latest commit
9b0697f26 October 2026

recommendations.js

Open raw
import express from 'express';
import * as recommendations from '../controller/recommendations.js';
import password from '../middlewares/password.js';

const app = express.Router();

app.get("/", password(false), async (req, res) => {
    let currentRecommendations = await recommendations.getCurrent();
    if (currentRecommendations === null) return res.status(501).json({message: "There are no recommendations yet"});

    return res.json(currentRecommendations);
});

export default app;
bytes
491
lines
14
Type
js
Latest commit
26 October 2026