mirror of
https://github.com/OliveTin/OliveTin
synced 2026-08-28 13:36:32 +00:00
fmt: gofmt
This commit is contained in:
@@ -72,9 +72,7 @@ func startRestAPIServer(globalConfig *config.Config) error {
|
||||
|
||||
// The JSONPb.EmitDefaults is necssary, so "empty" fields are returned in JSON.
|
||||
mux := runtime.NewServeMux(
|
||||
runtime.WithMetadata(func(ctx context.Context, request *http.Request) metadata.MD {
|
||||
return parseRequestMetadata(ctx, request)
|
||||
}),
|
||||
runtime.WithMetadata(parseRequestMetadata),
|
||||
runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.HTTPBodyMarshaler{
|
||||
Marshaler: &runtime.JSONPb{
|
||||
MarshalOptions: protojson.MarshalOptions{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package httpservers;
|
||||
package httpservers
|
||||
|
||||
import (
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
"fmt"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -65,4 +65,3 @@ func parseJwtCookie(request *http.Request) (string, string) {
|
||||
|
||||
return username, usergroup
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user