-
Notifications
You must be signed in to change notification settings - Fork 65
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
Server, Share, Directory and File browser implementation #35
Conversation
Should it not inherit the dark "skin"? |
@@ -26,21 +25,21 @@ class SharesTableViewController: BaseUITableViewController { | |||
presenter = SharesPresenter(self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good. Seems you are very familiar with the MVP Architecture. Looks forward to working more with you on this project. @csoni111
@@ -29,7 +29,7 @@ class DashboardPresenter: BasePresenter { | |||
|
|||
self.view?.updateRefreshing(isRefreshing: true) | |||
let access_token = LocalStorage.shared.getAccessToken() | |||
FetchServers.shared.fetch(access_token: access_token) { (serverResponse) in | |||
AmahiApi.shared.getServers(access_token: access_token) { (serverResponse) in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not append the access_token in ApiEndpoint file like this. static func servers() -> String { return "\(ApiConstants.BASE_URL)/paths_to_server/\(?access_token=\(LocalStorage().getAccessToken()!)" }
I have added the following:
Currently I have implemented only REMOTE mode for selecting the server url. AUTO and LOCAL Mode can be implemented after Settings screen is ready. I will cover App Browser in another pr. |
As per issue #8