Files
KeySelector/server/routes/recognize.js
T

20 lines
409 B
JavaScript

const express = require('express');
const router = express.Router();
// Mock recognize route
router.post('/', async (req, res) => {
// In production, this would receive an audio buffer, fingerpint it,
// and call the AcoustID API.
res.json({
status: 'success',
data: {
title: 'Mock Track',
artist: 'Mock Artist',
matchScore: '95%'
}
});
});
module.exports = router;