From 3d3e3512dbf797fd886f061267866b65555ec2e5 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 11 Dec 2022 19:52:20 +0530 Subject: [PATCH] Fetch gitlab token from env vars Signed-off-by: baalajimaestro --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a06f821..3d401fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ 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, @@ -31,9 +32,10 @@ struct ResponseJSON { async fn paste_render(data: Data