arso-project / sonar

A p2p content database and search engine
https://sonar.arso.xyz/
GNU General Public License v3.0
121 stars 6 forks source link

Client refactor #54

Closed Frando closed 4 years ago

Frando commented 4 years ago

another update: removes axios and uses isomorphic-fetch instead. Client.fetch is a wrapper with some extra options, notably requestType. Aim would be to keep this low. This could also be where we accept sonar specific url handlers. Much better than before already this way I think. collection.fetch just prepends the collection name to the path.

Frando commented 4 years ago

I think this is ready for review and adding JSdoc comments for everything that feels good already. We can leave out the legacy client for now and only document the new public classes and methods.

Frando commented 4 years ago

OK, going ahead and merging this!