Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Recording backend url #872

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/playback/playback_http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import 'package:angular/playback/playback_data.dart' as playback_data;

@NgInjectableService()
class PlaybackHttpBackendConfig {

String get recorder_url => '/record';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recoderUrl


requestKey(String url,
{String method, bool withCredentials, String responseType,
String mimeType, Map<String, String> requestHeaders, sendData,
Expand Down Expand Up @@ -63,7 +66,7 @@ class RecordingHttpBackend implements HttpBackend {
onProgress: onProgress);

assert(key is String);
_prodBackend.request('/record', //TODO make this URL configurable.
_prodBackend.request(_config.recorder_url,
method: 'POST', sendData: JSON.encode({
"key": key, "data": JSON.encode({
"status": r.status,
Expand Down