Initial Commit
This commit is contained in:
commit
e8529bdbee
25 changed files with 13519 additions and 0 deletions
16
src/routes/user.rs
Normal file
16
src/routes/user.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use askama::Template;
|
||||
use askama_web::WebTemplate;
|
||||
|
||||
use crate::error::AppStateError;
|
||||
|
||||
#[derive(Template, WebTemplate)]
|
||||
#[template(path = "users/index.html")]
|
||||
struct UsersIndexTemplate {}
|
||||
|
||||
pub async fn index() -> Result<impl axum::response::IntoResponse, AppStateError> {
|
||||
if 0 > 1 {
|
||||
return Err(AppStateError::Error);
|
||||
}
|
||||
|
||||
Ok(UsersIndexTemplate {})
|
||||
}
|
||||
Loading…
Reference in a new issue