Merge branch 'badges' of https://github.com/zer0bin-dev/zer0bin into badges

This commit is contained in:
ThatOneCalculator 2022-03-23 09:54:25 -07:00
commit 619b327ec2
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
use actix_web::{
get,
http::header::ContentType,
post,
web::{self},
HttpResponse, Responder,
@ -214,7 +213,7 @@ pub async fn get_stats(state: web::Data<AppState>) -> impl Responder {
// Badges
#[get("/v")]
pub async fn get_version_badge(state: web::Data<AppState>) -> impl Responder {
pub async fn get_version_badge() -> impl Responder {
let version = env!("CARGO_PKG_VERSION").to_string();
let badge = BadgeBuilder::new()