<commit_before>const express = require('express');

let router = express.Router();
module.exports = function(app, data) {
let controller = require('../controllers/drones-controller')(data);

router
    .get('/', controller.listDrones)
    .get('/:id',controller.getDroneDetails)
    .get('/services',controller.getServices);

app.use('/drones',router);
};
<commit_msg>Added drone profile on drones filtered by service.<commit_after>const express = require('express');

let router = express.Router();
module.exports = function(app, data) {
let controller = require('../controllers/drones-controller')(data);

router
    .get('/drones', controller.listDrones)
    .get('/drones/:id',controller.getDroneDetails)
    .get('/drones/services',controller.getServices)
    .get('/services/drones/:id',controller.getDroneDetails);

app.use('/',router);
};

{'fraction_non_alphanumeric': 0.179456906729634, 'fraction_numerical': 0.0, 'mean_word_length': 5.281481481481482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '628904', 'n_tokens_mistral': 263, 'n_tokens_neox': 253, 'n_words': 44}