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.validatetoaurweb.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_idfromaurweb.packages.utiltoaurweb.requests.utiland 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_ROUTESconstant (a list where routes should be configured).
Edited by Kevin Morris