Skip to content

Commit

Permalink
Move ApiEndpoints enum to the right place.
Browse files Browse the repository at this point in the history
  • Loading branch information
Egzon Pllana committed Aug 25, 2024
1 parent b707238 commit 625311a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ private enum Constants {
static let multipartFormDataContentType = "multipart/form-data"
}

// Endpoints
enum APIEndpoint {
case getPosts
case createPost(PostDTO)
case uploadImage(data: Data, fileName: String, mimeType: ImageMimeType)
}

/// Extension to conform to `APIEndpointProtocol`.
extension APIEndpoint: APIEndpointProtocol {
/// API version used by endpoints.
Expand Down

This file was deleted.

0 comments on commit 625311a

Please sign in to comment.