Skip to content

Commit

Permalink
Merge pull request #6 from joselinoneto/feature/fixtest
Browse files Browse the repository at this point in the history
update test to mocky 🐛 #5
  • Loading branch information
joselinoneto authored Mar 23, 2021
2 parents e4e82fe + d0e5036 commit 272ad20
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ extension ProfessionTarget: TargetType {
}

public var baseURL: URL {
URL(string: "https://mockapivapor.herokuapp.com/")!
URL(string: "https://run.mocky.io/v3/")!
}

public var path: String {
switch self {
case .getProfessions,
.getProfessionsWith,
.postProfession:
return "professions"
.getProfessionsWith:
return "8ae911b5-f8b5-4b67-a341-e85fbc0e635a"
case .postProfession:
return "1131699f-4cfe-4efc-b196-bba55d3e0c01"
case .getProfessionBy(let professionId):
return "professions/\(professionId)"
return "8ae911b5-f8b5-4b67-a341-e85fbc0e635a/\(professionId)"
}
}

Expand Down

0 comments on commit 272ad20

Please sign in to comment.