Skip to content

Commit

Permalink
More app code migration (#5170)
Browse files Browse the repository at this point in the history
* Migrate admin functions into app package

* More user function refactoring

* Move post functions into app package
  • Loading branch information
jwilander authored and hmhealey committed Jan 25, 2017
1 parent 8ed665c commit d245b29
Show file tree
Hide file tree
Showing 24 changed files with 1,457 additions and 1,072 deletions.
596 changes: 77 additions & 519 deletions api/admin.go

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions api/api.go
Expand Up @@ -4,7 +4,6 @@
package api

import (
"io/ioutil"
"net/http"

"github.com/gorilla/mux"
Expand Down Expand Up @@ -144,10 +143,3 @@ func ReturnStatusOK(w http.ResponseWriter) {
m[model.STATUS] = model.STATUS_OK
w.Write([]byte(model.MapToJson(m)))
}

func closeBody(r *http.Response) {
if r.Body != nil {
ioutil.ReadAll(r.Body)
r.Body.Close()
}
}

0 comments on commit d245b29

Please sign in to comment.