server/routes/resume.js
'use strict'; const express = require('express');const routes = express.Router();const path = require('path');const filename = path.basename(__filename, '.js');const dbs = require('../dbs/' + filename);const services = require('../services/' + filename)(dbs);const constants = require('../libs/consts'); // Return the list of all the articlesSimilar blocks of code found in 3 locations. Consider refactoring.routes.route('/').get(async (request, response) => { response.status(constants.SUCCESS_CODE).json(await services.get_resume());}); module.exports = routes;