diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-01-01 16:32:55 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-01-01 16:32:55 +0100 |
commit | bdb77f97d6af5a59e80d2b2552cd6994754cbf29 (patch) | |
tree | 20bbc02edfe21f2dd75985976e273a97c809bb07 /planetwars-server/src/lib.rs | |
parent | 4a077c7c65eced447c45389acf05007dd571bf26 (diff) | |
download | planetwars.dev-bdb77f97d6af5a59e80d2b2552cd6994754cbf29.tar.xz planetwars.dev-bdb77f97d6af5a59e80d2b2552cd6994754cbf29.zip |
minimal port of start_match logic
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r-- | planetwars-server/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index 01e9041..1d08580 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -22,6 +22,11 @@ use axum::{ AddExtensionLayer, Router, }; +// TODO: make these configurable +const BOTS_DIR: &str = "./data/bots"; +const MATCHES_DIR: &str = "./data/matches"; +const MAPS_DIR: &str = "./data/maps"; + type ConnectionPool = bb8::Pool<DieselConnectionManager<PgConnection>>; pub async fn api() -> Router { |