|
|
|
|
@ -20,7 +20,7 @@ struct ServiceCall { |
|
|
|
|
var requiresToken: Bool |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let createAccountCall: ServiceCall = ServiceCall(path: "users", method: .post, requiresToken: false) |
|
|
|
|
let createAccountCall: ServiceCall = ServiceCall(path: "users/", method: .post, requiresToken: false) |
|
|
|
|
let requestTokenCall: ServiceCall = ServiceCall(path: "token-auth/", method: .post, requiresToken: false) |
|
|
|
|
let logoutCall: ServiceCall = ServiceCall(path: "api-token-logout/", method: .post, requiresToken: true) |
|
|
|
|
let getUserCall: ServiceCall = ServiceCall(path: "user-by-token/", method: .get, requiresToken: true) |
|
|
|
|
|