-
Andrej Rasevic authoredAndrej Rasevic authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
problem4.js 852 B
const express = require('express')
const router = express.Router()
const { sortByTitleAscending, sortByTitleDescending, sortByAuthorAscending, sortByAuthorAscending, filterData } = require('./functions')
const data = [
{
title: "100 Years of Solitude",
author: "Gabriel Garcia Marquez"
},
{
title: "Sun Also Rises",
author: "Ernest Hemingway"
},
{
title: "Bridge over the River Drina",
author: "Ivo Andric"
},
{
title: "Love In the Time of Cholera",
author: "Gabriel Garcia Marquez"
},
{
title: "Death of Ivan Ilych",
author: "Leo Tolstoy"
},
{
title: "Ulysses",
author: "James Joyce"
},
{
title: "Old Man and the Sea",
author: "Ernest Hemingway"
}
]
// define your get request here