luarocks / luarocks-site

LuaRocks website and module host
http://luarocks.org
176 stars 36 forks source link

Support serving non-root manifest #209

Open goldenstein64 opened 3 months ago

goldenstein64 commented 3 months ago

This PR adds support for pulling non-root manifest files from /m/:manifest/manifest.

Fixes #59. Also fixes #141.

I should add that I'm very inexperienced in using Lapis and web dev in general, so I would like confirmation that I'm not breaking the API, creating a bad performance path, adding code in the wrong file, etc.

I'm afraid this could complicate mirrors or other things because all invalid non-root manifest URLs, even if said manifest is fake, redirect to /*. If this causes difficulties, I'm happy to change/remove it.