Skip to content

Commit

Permalink
fix: Addition to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MendyBerger committed Mar 21, 2024
1 parent 5a592e9 commit e76acbf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions shared/rust/src/api/endpoints/jig/codes.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use crate::{
api::{ApiEndpoint, Method},
domain::jig::codes::{
JigCodeListPath, JigCodeListRequest, JigCodeListResponse, JigCodeSessionsListResponse,
JigCodeSessionsPath, JigPlayerSessionCreatePath, JigPlayerSessionCreateRequest,
JigPlayerSessionCreateResponse,
JigCodeListPath, JigCodeListRequest, JigCodeListResponse, JigCodeSessionsListResponse, JigCodeSessionsPath, JigPlayerSessionCreatePath, JigPlayerSessionCreateRequest, JigPlayerSessionCreateResponse, JigCodeUpdatePath, JigCodeUpdateRequest
},
error::EmptyError,
};
Expand Down Expand Up @@ -50,6 +48,16 @@ impl ApiEndpoint for Create {
const METHOD: Method = Method::Post;
}

/// update a code
pub struct Update;
impl ApiEndpoint for Update {
type Path = JigCodeUpdatePath;
type Req = JigCodeUpdateRequest;
type Res = ();
type Err = EmptyError;
const METHOD: Method = Method::Patch;
}

/// List codes creator by user.
pub struct JigCodeList;
impl ApiEndpoint for JigCodeList {
Expand Down

0 comments on commit e76acbf

Please sign in to comment.