external resource loading, window.location, tab icon fix
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use serenity::async_trait;
|
||||
use serenity::all::*;
|
||||
use serenity::prelude::*;
|
||||
use sqlx::PgPool;
|
||||
|
||||
pub struct DiscordBot {
|
||||
|
||||
@@ -6,9 +6,8 @@ mod routes;
|
||||
|
||||
use crate::{auth::jwt_middleware, config::Config, discord_bot};
|
||||
use actix_governor::{Governor, GovernorConfigBuilder};
|
||||
use actix_web::{http::Method, web, web::Data, App, HttpRequest, HttpServer};
|
||||
use actix_web::{http::Method, web, web::Data, App, HttpServer};
|
||||
use actix_web_httpauth::middleware::HttpAuthentication;
|
||||
use anyhow::{anyhow, Error};
|
||||
use colored::Colorize;
|
||||
use macros_rs::fmt::{crashln, string};
|
||||
use ratelimit::RealIpKeyExtractor;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use super::helpers::deserialize_lowercase;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::{FromRow, types::chrono::{DateTime, Utc}};
|
||||
use chrono;
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, FromRow)]
|
||||
pub struct Domain {
|
||||
|
||||
@@ -242,6 +242,7 @@ pub(crate) async fn get_domain(path: web::Path<(String, String)>, app: Data<AppS
|
||||
tld: domain.tld,
|
||||
name: domain.name,
|
||||
ip: domain.ip,
|
||||
records: None,
|
||||
}),
|
||||
Ok(None) => HttpResponse::NotFound().finish(),
|
||||
Err(_) => HttpResponse::InternalServerError().finish(),
|
||||
@@ -378,6 +379,7 @@ pub(crate) async fn get_domains(query: web::Query<PaginationParams>, app: Data<A
|
||||
tld: domain.tld,
|
||||
name: domain.name,
|
||||
ip: domain.ip,
|
||||
records: None,
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user