proxmox/proxmox-rest-server
Wolfgang Bumiller 515cc729d0 rest-server: drop ServerAdapter, move AuthError
Instead of a ServerAdapter for the index page and
authentication checking (which don't relate to each other),
provide a `.with_auth_handler` and `.with_index_handler`
builder for ApiConfig separately.

Both are optional. Without an index handler, it'll produce a
404. Without an auth handler, an `AuthError::NoData` is
returned.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-03-02 16:14:04 +01:00
..
debian bump proxmox-rest-server to 0.2.2-1 2023-02-10 10:42:40 +01:00
examples tree wide: typo fixes through codespell 2022-06-07 14:08:09 +02:00
src rest-server: drop ServerAdapter, move AuthError 2023-03-02 16:14:04 +01:00
Cargo.toml rest-server: make handlebars optional as 'templates' feature 2023-03-02 16:07:50 +01:00