I'm currently trying to migrate my code from ArangoDB v2.8 to v3.0.1 and I'm stuck with routes. I have a simple route like:
const router = require('@arangodb/foxx/router')()
router.get('/hello', function (req, res) {
res.json({ hi: 'world' })
})
and my BASE URL is:
and of course my router is registered in manifest.json
as "main": "index.js",
but when I'm trying to access it via /_db/ilearn/api/hello
I'm getting 404 "unknown path '/api/hello'"
.
I have tried changing URL in all possible ways, nothing helps. What am I doing wrong here?
Thanks