1 Home
Matheus Sampaio Queiroga edited this page 2023-10-26 10:04:57 -03:00
const apt = new Router({"app path": "/debian"});
apt.get("/dists/:distName/(InRelease|Release|Release.gpg)", ({path, params}, res) => res.json({ path, params }));
apt.get("/dists/:distName/:Component/binary-:Arch/Packages(.gz|.xz)?", ({path, params}, res) => res.json({ path, params }));
apt.get("/dists/:distName/:Component/binary-:Arch/by-hash/:HashType/:Hash", ({path, params}, res) => res.json({ path, params }));
flowchart LR
  Request["User/APT Request"]
  Response["Response"]
  Release[(Release file)]
  PGP[(Release Sign)]
  Packages[(Packages file)]
  CompressP[(Compress Package)]

  Request -- "Pool deb path"         --> Response
  Request --> Packages --> CompressP --> Response
                            Packages --> Response
  Request -->                            Release --> Response
                           CompressP --> Release
                            Packages --> Release
                            Release --> PGP --> Response