Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.
Matheus Sampaio Queiroga edited this page Oct 26, 2023 · 1 revision
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
Loading
Clone this wiki locally