|
|
|
@ -1,4 +1,7 @@
|
|
|
|
|
use utils::{error::{Error, Result}, is_human};
|
|
|
|
|
use utils::{
|
|
|
|
|
error::{Error, Result},
|
|
|
|
|
is_human,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
use actix_web::{get, http::header, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
|
|
|
|
use clap::Parser;
|
|
|
|
@ -9,7 +12,7 @@ pub const TATOEBA_API: &str = "https://tatoeba.org/en/api_v0/search";
|
|
|
|
|
#[command(author, version, about, long_about = None)]
|
|
|
|
|
struct Args {
|
|
|
|
|
/// The port at which to run.
|
|
|
|
|
#[arg(short, long, default_value_t=3001)]
|
|
|
|
|
#[arg(short, long, default_value_t = 3001)]
|
|
|
|
|
port: u16,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|