Can I fetch JSON data of items from this link "/items"

```
app.get("/items", middleware.isLoggedIn, function(req, res) {
    Item.findById(req.params.id, function(err, item) {
        if(err){
            console.log(err);
        }else{
            res.render("buildings/items", {item : item}); 
        }
    });
});

```

I tried :

```
$(document).ready(function(){
  $.getJSON("/items")
  .then(function(data){
    console.log(data);
  });
});

```

but it didn't work.