summaryrefslogtreecommitdiffstats
path: root/cli/src/api.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-04-24 11:27:42 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-04-24 11:27:42 +0200
commita4dbf815cc418514a268ca54464c2d1b9c413055 (patch)
tree81d6a5944a00839f37c7d9ea469274f8d8425338 /cli/src/api.rs
parent1c3e4dba9fe90faa318933a99eecdb9cd5e7481a (diff)
downloadfaktura-a4dbf815cc418514a268ca54464c2d1b9c413055.tar.gz
faktura-a4dbf815cc418514a268ca54464c2d1b9c413055.tar.bz2
faktura-a4dbf815cc418514a268ca54464c2d1b9c413055.zip
cli: Add feature to save clients to the db.
Also introduces a Connection object to handle the actual connection to the remote API. We also load the remote API url and jwt token from the process environment so these are no longer hardcoded into the source code.
Diffstat (limited to 'cli/src/api.rs')
-rw-r--r--cli/src/api.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/api.rs b/cli/src/api.rs
index 594530a..da7eb5b 100644
--- a/cli/src/api.rs
+++ b/cli/src/api.rs
@@ -4,5 +4,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
pub mod client;
+pub mod connection;
pub use client::Client;
+pub use connection::Connection;