routers: Move API and Web routers into their own files.

This is done to ensure we have a clean way to add new routers such as

  - diskRouter
  - configRouter
  - lockRouter
This commit is contained in:
Harshavardhana
2016-03-27 12:37:21 -07:00
parent 1502e2f29f
commit aa8c9bad54
5 changed files with 207 additions and 146 deletions

View File

@@ -168,7 +168,7 @@ func (web *webAPI) ListBuckets(r *http.Request, args *ListBucketsArgs, reply *Li
}
for _, bucket := range buckets {
// List all buckets which are not private.
if bucket.Name != path.Base(privateBucket) {
if bucket.Name != path.Base(reservedBucket) {
reply.Buckets = append(reply.Buckets, BucketInfo{
Name: bucket.Name,
CreationDate: bucket.CreationDate,