mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
more golint cleanup
This commit is contained in:
parent
118404c77f
commit
ebe4c60446
@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ImportAccount TODO import account into node
|
||||
func ImportAccount(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//Authorize confirm account authorization with signed data message
|
||||
func Authorize(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, res := BearerAppToken(r, true)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ClearArticleGroup remove sharing group from article
|
||||
func ClearArticleGroup(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ClearCardGroup removes card from sharing group
|
||||
func ClearCardGroup(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ClearCardNotes clear notes assigned to card
|
||||
func ClearCardNotes(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ClearChannelCard removes card from channel membership
|
||||
func ClearChannelCard(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := ParamAgentToken(r, false)
|
||||
|
@ -8,6 +8,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//ClearChannelGroup removes sharing group from channel
|
||||
func ClearChannelGroup(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
account, code, err := BearerAppToken(r, false)
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetAccountAvailable return number of accounts available for public creation
|
||||
func GetAccountAvailable(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
available, err := getAvailableAccounts()
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//GetAccountListing retrieves profile list of publicly accessible accounts
|
||||
func GetAccountListing(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
var accounts []store.Account
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//GetAccountListingImage retrieve profile image of publicly accessible account
|
||||
func GetAccountListingImage(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// get referenced account guid
|
||||
|
Loading…
Reference in New Issue
Block a user