
# Endpoints

let n be the repo name.

## Web view
GET  /packages/                       # home page listing packages - simple search bar.
GET  /packages?q=<query>              # search for a package
GET  /packages/<name>                 # main page for a repository, shows status, files, name etc.
GET  /packages/<name>/~repo/<path>    # path for a file within a repo
GET  /packages/<name>/~repo?q=<query> # search within a package's files
GET  /packages/<name>/~artifact/      # page listing repo artifacts by date
GET  /packages/<name>/~artifact/<id>  # page for a specific artifact and status/logs

## API
POST /api/pkg                         # create repo
GET  /api/pkg/<name>                  # repo status/metadata
POST /api/pkg/<name>/push             # upload source tarball
GET  /api/pkg/<name>/pull             # download source tarball
GET  /api/pkg/<name>/artifact         # download compiled binary
