mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 19:49:16 +00:00
18 lines
288 B
Go
18 lines
288 B
Go
package databag
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func GetAccountToken(w http.ResponseWriter, r *http.Request) {
|
|
|
|
accountToken, err := BearerAccountToken(r)
|
|
if err != nil {
|
|
LogMsg("token not found")
|
|
w.WriteHeader(http.StatusNotFound)
|
|
return
|
|
}
|
|
|
|
WriteResponse(w, accountToken.TokenType)
|
|
}
|