- find this tera template at
assets/views/home/hello.html
:
- -
- {{ t(key="hello-world", lang="en-US") }}, -
- {{ t(key="hello-world", lang="de-DE") }} - - - \ No newline at end of file diff --git a/nixin_farm_ssr/assets/views/home/index.html b/nixin_farm_ssr/assets/views/home/index.html new file mode 100644 index 0000000..decca6a --- /dev/null +++ b/nixin_farm_ssr/assets/views/home/index.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block title %} +Login +{% endblock title %} + +{% block content %} +
+
+{% endblock content %}
\ No newline at end of file
diff --git a/nixin_farm_ssr/assets/views/home/login.html b/nixin_farm_ssr/assets/views/home/login.html
new file mode 100644
index 0000000..01e75f2
--- /dev/null
+++ b/nixin_farm_ssr/assets/views/home/login.html
@@ -0,0 +1,68 @@
+{% extends "base.html" %}
+
+{% block title %}
+Login
+{% endblock title %}
+
+{% block content %}
+
+
+
+
+
+
+Index
+
+
+{% endblock content %}
\ No newline at end of file
diff --git a/nixin_farm_ssr/assets/views/home/register.html b/nixin_farm_ssr/assets/views/home/register.html
new file mode 100644
index 0000000..e69de29
diff --git a/nixin_farm_ssr/assets/views/home/resetpwd.html b/nixin_farm_ssr/assets/views/home/resetpwd.html
new file mode 100644
index 0000000..e69de29
diff --git a/nixin_farm_ssr/src/controllers/home.rs b/nixin_farm_ssr/src/controllers/home.rs
index ce00300..8740da1 100644
--- a/nixin_farm_ssr/src/controllers/home.rs
+++ b/nixin_farm_ssr/src/controllers/home.rs
@@ -3,8 +3,40 @@
#![allow(clippy::unused_async)]
use loco_rs::prelude::*;
use axum::debug_handler;
+use axum::{extract::State, Json};
+use loco_rs::{
+ app::AppContext,
+ controller::middleware,
+ Result,
+};
+
+use crate::{
+ models::users,
+ views,
+};
+
+#[debug_handler]
+pub async fn home(
+ //auth: auth::JWT,
+ ViewEngine(v): ViewEngine
+
+
+
+ Sign in to your account
+
+
+
+
++ No account yet? + Register a new account +
+