fix(users): update Axum routes to 0.7 syntax for email templates
This commit is contained in:
parent
7ee2b21e74
commit
8d920c4b34
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ use crate::AppState;
|
|||
pub fn router() -> Router<AppState> {
|
||||
Router::new()
|
||||
.route("/templates", get(list_templates))
|
||||
.route("/templates/:name/preview", get(preview_template))
|
||||
.route("/templates/:name/test", post(send_test_email))
|
||||
.route("/templates/{name}/preview", get(preview_template))
|
||||
.route("/templates/{name}/test", post(send_test_email))
|
||||
.route("/smtp-config", get(get_smtp_config).post(update_smtp_config))
|
||||
.route("/smtp-test", post(test_smtp_connection))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue