From 5a11107b06e7df92397283f7ee1c0bf21f4de127 Mon Sep 17 00:00:00 2001 From: "kacaii.dev" Date: Wed, 1 Apr 2026 20:24:48 -0300 Subject: [PATCH] :truck: change `RegisterCrewUrl` --- shared/src/shared/contract/register_crew.gleam | 2 +- shared/src/shared/route.gleam | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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" } } -- 2.51.2