Closed after-ephemera closed 3 months ago
to_string would result in a URL like myclerkdomain.com/rest/v1GetUser instead of the proper myclerkdomain.com/rest/v1/user/{user_id}. This uses the enum fn as_str to get the proper path for a given endpoint.
to_string
myclerkdomain.com/rest/v1GetUser
myclerkdomain.com/rest/v1/user/{user_id}
as_str
This PR stacks on https://github.com/DarrenBaldwin07/clerk-rs/pull/48
to_string
would result in a URL likemyclerkdomain.com/rest/v1GetUser
instead of the propermyclerkdomain.com/rest/v1/user/{user_id}
. This uses the enum fnas_str
to get the proper path for a given endpoint.This PR stacks on https://github.com/DarrenBaldwin07/clerk-rs/pull/48