mirror of
https://github.com/gomods/athens
synced 2026-02-03 14:20:31 +00:00
* Added filter for private repos. Non private repos get redirected to olympus * Changed filter to allow private modules * Changed config file name function * Added filter tests * The middleware returns 200 for privates, redirects public, 404 for disabled repos * Removed printf * Removed forgotten printf * Removed logger from the middleware func, not used anymore * Removed unused (uncommented) function * Replaced 404 with 403 in case of banned modules * Fixed test path / cleaned olympus endpoint suffix * Added error operation to GetVersion * Moved filter test in custom file, reverted injection of the filter into the app * Removed white line * Clarified comment for ignoring getversion error * Added todo comment to fill the cache and serve the request with the cache * Added error handling to filter * Removed commented early version of the test