Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”€ :: [#3] PUT Method 지원 #4

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/Emdpoint/EndpointType/Route.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum Route {
case get(String)
case head(String)
case post(String)
case put(String)
case patch(String)
case delete(String)
case options(String)
Expand All @@ -21,6 +22,9 @@ public enum Route {
case .post:
return "POST"

case .put:
return "PUT"

case .patch:
return "PATCH"

Expand All @@ -43,6 +47,7 @@ public enum Route {
case let .get(path),
let .head(path),
let .post(path),
let .put(path),
let .patch(path),
let .delete(path),
let .options(path),
Expand Down