route param optional

This commit is contained in:
Daniel Lugo 2020-06-27 02:43:45 +01:00
parent 140b0a43b0
commit c569526c52

View file

@ -1842,7 +1842,7 @@ module.exports = async (
})
////////////////////////////////////////////////////////////////////////////////
app.get(`/api/gun/wall/:publicKey`, async (req, res) => {
app.get(`/api/gun/wall/:publicKey?`, async (req, res) => {
try {
const { page } = req.query;
const {publicKey} = req.params