mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Move Robocraft auth server to actix_web for better error responses #31
This commit is contained in:
1 parent
796304bc4a
commit
89b1db35ba
23 files changed
+455
-211
No files matched your search
@@ -3,8 +3,6 @@ mod common;
|
||||
|
||||
#[cfg(feature = "cardlife")]
|
||||
mod cardlife;
|
||||
#[cfg(feature = "robocraft")]
|
||||
mod robocraft;
|
||||
|
||||
#[rocket::get("/")]
|
||||
fn index() -> String {
|
||||
@@ -27,12 +25,7 @@ async fn rocket() -> _ {
|
||||
|
||||
#[cfg(feature = "cardlife")]
|
||||
{builder = builder.attach(cardlife::stage());}
|
||||
#[cfg(feature = "robocraft")]
|
||||
{builder = builder.attach(robocraft::stage());}
|
||||
|
||||
builder
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "steam", feature = "robocraft", feature = "cardlife"))]
|
||||
compile_error!("Feature \"steam\" cannot work with features \"cardlife\" and \"robocraft\" at the same time");
|
||||
|
||||
Reference in new issue
Block a user