Skip to content

Commit

Permalink
api: reorder constants and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Feb 24, 2016
1 parent 98ed041 commit c7aa7c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/v1/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import (
"github.com/coreos/clair/worker"
)

// maxBodySize restricts client requests to 1MiB.
const (
maxBodySize int64 = 1048576

// These are the route identifiers for prometheus.
postLayerRoute = "v1/postLayer"
getLayerRoute = "v1/getLayer"
deleteLayerRoute = "v1/deleteLayer"
Expand All @@ -47,6 +45,9 @@ const (
getNotificationRoute = "v1/getNotification"
deleteNotificationRoute = "v1/deleteNotification"
getMetricsRoute = "v1/getMetrics"

// maxBodySize restricts client request bodies to 1MiB.
maxBodySize int64 = 1048576
)

func decodeJSON(r *http.Request, v interface{}) error {
Expand Down

0 comments on commit c7aa7c4

Please sign in to comment.