|
|
@ -2,7 +2,7 @@
|
|
|
|
extern crate rocket;
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
|
|
|
|
use poise::serenity_prelude::Http;
|
|
|
|
use poise::serenity_prelude::Http;
|
|
|
|
use rocket::{fs::{relative, FileServer}};
|
|
|
|
use rocket::fs::{relative, FileServer};
|
|
|
|
use rocket_dyn_templates::{tera, Template};
|
|
|
|
use rocket_dyn_templates::{tera, Template};
|
|
|
|
use sass_rocket_fairing::SassFairing;
|
|
|
|
use sass_rocket_fairing::SassFairing;
|
|
|
|
use std::{collections::HashMap, env};
|
|
|
|
use std::{collections::HashMap, env};
|
|
|
@ -58,7 +58,7 @@ async fn rocket() -> _ {
|
|
|
|
"langs",
|
|
|
|
"langs",
|
|
|
|
move |value: &Value, args: &HashMap<String, Value>| {
|
|
|
|
move |value: &Value, args: &HashMap<String, Value>| {
|
|
|
|
langs_filter(value, args, &langs)
|
|
|
|
langs_filter(value, args, &langs)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
.attach(SassFairing::default())
|
|
|
|
.attach(SassFairing::default())
|
|
|
|