mirror of https://gitee.com/bigwinds/arangodb
* Unbreak aardvark when --foxx.api false The easiest way to disable the aardvark foxx routes is to just skip the import and mount altogether. The previous approach caused the service to throw an error because the module doesn't actually export anything. There's no need to prevent the export if we just don't import the module to begin with. * Add an error code for service api disabled * Throw an actual error when accessing Foxx API routes * Throw an error when using legacy Foxx API There's no easy way to use a catch-all here so disable them one by one. No new routes will be added to this API and it'll go away in 4.0 so there's no risk of forgetting to add the throw-check in new routes. * Render subnav without delay The subnav doesn't need the perm check results but we need the subnav to exist so we can populate it in other parts of the app. This fixes the subnav not showing up when reloading certain views (e.g. install service via upload). * Hide ONLY the Foxx store when it is disabled We still want to allow installing and upgrading/replacing services. We just don't want to show the store. * Hide Foxx services in frontend if Foxx API is disabled * Build aardvark * fixed typo in disable check, fixed tests |
||
---|---|---|
.. | ||
_admin | ||
api-cluster.js | ||
api-simple.js | ||
api-system.js | ||
api-traversal.js |