Skip to content

Commit 30f236b

Browse files
pietroalbiniTurbo87
authored andcommitted
clarify existing crate_owner_invitations APIs are in the v1 namespace
1 parent ea1fe1f commit 30f236b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controllers/crate_owner_invitation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::views::{EncodableCrateOwnerInvitation, EncodablePublicUser, Invitatio
66
use diesel::dsl::any;
77
use std::collections::HashMap;
88

9-
/// Handles the `GET /me/crate_owner_invitations` route.
9+
/// Handles the `GET /api/v1/me/crate_owner_invitations` route.
1010
pub fn list(req: &mut dyn RequestExt) -> EndpointResult {
1111
// Ensure that the user is authenticated
1212
let user = req.authenticate()?.forbid_api_token_auth()?.user();
@@ -88,7 +88,7 @@ struct OwnerInvitation {
8888
crate_owner_invite: InvitationResponse,
8989
}
9090

91-
/// Handles the `PUT /me/crate_owner_invitations/:crate_id` route.
91+
/// Handles the `PUT /api/v1/me/crate_owner_invitations/:crate_id` route.
9292
pub fn handle_invite(req: &mut dyn RequestExt) -> EndpointResult {
9393
let mut body = String::new();
9494
req.body().read_to_string(&mut body)?;
@@ -117,7 +117,7 @@ pub fn handle_invite(req: &mut dyn RequestExt) -> EndpointResult {
117117
}))
118118
}
119119

120-
/// Handles the `PUT /me/crate_owner_invitations/accept/:token` route.
120+
/// Handles the `PUT /api/v1/me/crate_owner_invitations/accept/:token` route.
121121
pub fn handle_invite_with_token(req: &mut dyn RequestExt) -> EndpointResult {
122122
let config = &req.app().config;
123123
let conn = req.db_conn()?;

0 commit comments

Comments
 (0)