diff --git a/src/routes.rs b/src/routes.rs index e3d1cc2..9d7b15e 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -4,7 +4,7 @@ mod users; pub fn routes() -> Vec { routes![ home::index, - users::sign_up_show, - users::sign_up, + users::show, + users::create, ] } diff --git a/src/routes/users.rs b/src/routes/users.rs index a58dc1b..7db3f90 100644 --- a/src/routes/users.rs +++ b/src/routes/users.rs @@ -7,14 +7,14 @@ use rocket::request::Form; use rocket_contrib::templates::Template; #[get("/sign_up")] -pub fn sign_up_show() -> Template { +pub fn show() -> Template { Template::render("sign_up", &BasicTemplateContext { layout: "site", }) } #[post("/users", data = "
")] -pub fn sign_up( +pub fn create( db_conn: database::DbConn, form: Form, ) -> Result