moved signup route
This commit is contained in:
parent
cb11d34e0a
commit
b3d8d408d2
|
|
@ -9,6 +9,9 @@ mod model;
|
|||
pub fn api_router() -> Router {
|
||||
Router::new()
|
||||
.nest("/account/:user_id", account_router())
|
||||
.route("/account",
|
||||
post(account::post_sign_up)
|
||||
)
|
||||
.route("/predict",
|
||||
get(model::get_predict)
|
||||
)
|
||||
|
|
@ -20,9 +23,6 @@ fn account_router() -> Router {
|
|||
get(account::get_sign_in)
|
||||
.post(account::post_sign_in)
|
||||
)
|
||||
.route("/sign-up",
|
||||
post(account::post_sign_up)
|
||||
)
|
||||
.route("/backup",
|
||||
post(account::post_backup)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue