proxmox/proxmox-rest-server/src
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
..
api_config.rs rest-server: drop ServerAdapter, move AuthError 2023-03-02 16:14:04 +01:00
command_socket.rs proxmox-rest-server: replace print with log macro 2022-06-21 10:43:19 +02:00
compression.rs rest server: rust fmt 2022-04-06 16:55:39 +02:00
daemon.rs rest-server: update to OwnedFd 2022-10-19 13:25:40 +02:00
environment.rs rest-server: drop Router from ApiConfig 2023-03-02 16:13:55 +01:00
file_logger.rs proxmox-rest-server: replace print with log macro 2022-06-21 10:43:19 +02:00
formatter.rs rest-server: drop Router from ApiConfig 2023-03-02 16:13:55 +01:00
h2service.rs rest-server: drop Router from ApiConfig 2023-03-02 16:13:55 +01:00
lib.rs rest-server: drop ServerAdapter, move AuthError 2023-03-02 16:14:04 +01:00
rest.rs rest-server: drop Router from ApiConfig 2023-03-02 16:13:55 +01:00
state.rs rest server: rust fmt 2022-04-06 16:55:39 +02:00
worker_task.rs rest-server: add handle_worker from backup debug cli 2023-02-10 10:23:41 +01:00