use actix_web::{get, App, HttpResponse, HttpServer, Responder, web::{Data, Query}}; use tera::{Tera, Context}; use serde::{Serialize, Deserialize}; use reqwest::{Client, header::HeaderMap}; use std::env; struct Template { paste: Tera, } #[derive(Deserialize)] struct Paste { paste_id: Option, } #[derive(Serialize, Deserialize)] struct ResponseJSON { file_name: String, file_path: String, size: u64, encoding: String, content_sha256: String, r#ref: String, blob_id: String, commit_id: String, last_commit_id: String, execute_filemode: bool, content: String, } #[get("/")] async fn paste_render(data: Data