diff --git a/backend/src/main.rs b/backend/src/main.rs index 856f07d..7af4130 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -1,18 +1,28 @@ -use actix_web::{web, App, HttpServer}; +use actix_web::{get, web, App, HttpServer,HttpResponse,Responder}; use dotenv; use actix_cors::Cors; mod contact; +#[get("/")] +async fn index() -> impl Responder { + HttpResponse::Ok() + .header("Content-Type", "text/html") + .body("Everything works!") +} + #[actix_web::main] async fn main() -> std::io::Result<()>{ let server_addr = dotenv::var("SERVER_ADDR").expect("SERVER ADDRESS number must be set in .env"); + + println!("Server is running on {}", server_addr); HttpServer::new(|| { App::new() .wrap(Cors::permissive()) .service(contact::add) + .service(index) }) .bind(server_addr)? .run() diff --git a/rsa-encrypt/pkg/.gitignore b/rsa-encrypt/pkg/.gitignore index e69de29..f59ec20 100644 --- a/rsa-encrypt/pkg/.gitignore +++ b/rsa-encrypt/pkg/.gitignore @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/rsa-encrypt/pkg/rsa_encrypt.js b/rsa-encrypt/pkg/rsa_encrypt.js index 808aa0f..3b16cef 100644 --- a/rsa-encrypt/pkg/rsa_encrypt.js +++ b/rsa-encrypt/pkg/rsa_encrypt.js @@ -255,14 +255,6 @@ function getImports() { const ret = typeof(getObject(arg0)) === 'string'; return ret; }; - imports.wbg.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() { - const ret = module; - return addHeapObject(ret); - }; - imports.wbg.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2)); - return addHeapObject(ret); - }, arguments) }; imports.wbg.__wbg_crypto_2036bed7c44c25e7 = function(arg0) { const ret = getObject(arg0).crypto; return addHeapObject(ret); @@ -271,6 +263,14 @@ function getImports() { const ret = getObject(arg0).msCrypto; return addHeapObject(ret); }; + imports.wbg.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() { + const ret = module; + return addHeapObject(ret); + }; + imports.wbg.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2)); + return addHeapObject(ret); + }, arguments) }; imports.wbg.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) { const ret = new Function(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); diff --git a/rsa-encrypt/pkg/rsa_encrypt_bg.wasm b/rsa-encrypt/pkg/rsa_encrypt_bg.wasm index bb53064..e3b601f 100644 Binary files a/rsa-encrypt/pkg/rsa_encrypt_bg.wasm and b/rsa-encrypt/pkg/rsa_encrypt_bg.wasm differ