diff --git a/shared/src/shared/contract/register_crew.gleam b/shared/src/shared/contract/register_crew.gleam index 00ccd48..8e74e63 100644 --- a/shared/src/shared/contract/register_crew.gleam +++ b/shared/src/shared/contract/register_crew.gleam @@ -5,7 +5,7 @@ import shared/user.{type User} pub const url = "/api/crew" -pub const email_autocomplete_url = "/api/email/autocomplete" +pub const email_autocomplete_url = "/api/user/autocomplete" // REQUEST --------------------------------------------------------------------- diff --git a/shared/src/shared/route.gleam b/shared/src/shared/route.gleam index a9416a4..60e6323 100644 --- a/shared/src/shared/route.gleam +++ b/shared/src/shared/route.gleam @@ -49,10 +49,10 @@ pub fn is_protected(route: Route) -> Bool { pub fn parse(uri: uri.Uri) -> Route { case uri.path_segments(uri.path) { [] | [""] -> Landing + ["crew", "register"] -> RegisterCrew ["home"] -> Home ["login"] -> Login ["profile"] -> Profile - ["register-crew"] -> RegisterCrew ["signup"] -> Signup ["not-found"] | _ -> NotFound @@ -61,12 +61,12 @@ pub fn parse(uri: uri.Uri) -> Route { pub fn to_path(route: Route) -> String { case route { - Home -> "/home" Landing -> "/" + Home -> "/home" Login -> "/login" NotFound -> "/not-found" Profile -> "/profile" - RegisterCrew -> "/register-crew" + RegisterCrew -> "/crew/register" Signup -> "/signup" } }