change(python): move request & pkgbase request routes
Move package request routes and related routes to their
respective routers. In addition, move some utility used
for requests over from aurweb.packages
.
Introduced routers:
aurweb.routers.requests
Introduced package:
aurweb.requests
Introduced module:
aurweb.requests.util
Changes:
- Moved
aurweb.packages.validate
toaurweb.pkgbase.validate
- Moved requests listing & request closure routes to
aurweb.routers.requests
- Moved pkgbase request creation route to
aurweb.routers.pkgbase
- Moved
get_pkgreq_by_id
fromaurweb.packages.util
toaurweb.requests.util
and fixed its return type hint.
Signed-off-by: Kevin Morris kevr@0cost.org
PS
- Snuck in a centralization of sub-routers modules with a new
aurweb.routers.APP_ROUTES
constant (a list where routes should be configured).
Edited by Kevin Morris