func MakeSaveAllHandler(ctx context.Context) http.Handler { var saveallendpoint = MakeSaveAllEndpoint() saveallendpoint = authservice.RestrictedAccessMiddleware()(saveallendpoint) var typedrequest = new(http_req_res.ReqSaveAll) var saveallhandler = httptransport.NewServer(ctx, saveallendpoint, http_req_res.DecodeRequest(typedrequest), http_req_res.EncodeResponse) handler := http_req_res.CORS.Handler(saveallhandler) return handler }
func AuthentificationHandler(ctx context.Context) http.Handler { var request = new(http_req_res.LoginHttpRequest) var authhandler = httptransport.NewServer(ctx, AuthentificationEndpoint(ctx), http_req_res.DecodeRequest(request), http_req_res.EncodeResponse) handler := http_req_res.CORS.Handler(authhandler) return handler }