joehand / archiver-api

rest API for hypercore-archiver
MIT License
3 stars 0 forks source link

Move all route logic out of index.js and into server.js #4

Closed pfrazee closed 7 years ago

pfrazee commented 7 years ago

We should extract the params & content out of requests, then pass that into the index.js methods as individual requests. That way we won't have routing shared btwn hypercloud & archiver-api.

The existing route logic in index.js can go into server.js.

The tests should be updated to only (or primarily) check the api of index.js