File tree 2 files changed +9
-4
lines changed
lib/Perl5/CoreSmokeDB/API
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,19 @@ get '/api/openapi/web' => sub {
66
66
return $yaml ;
67
67
};
68
68
69
- =head2 POST B</report >
69
+ =head2 POST B</api/old_format_reports >
70
70
71
71
This is a backward compatible endpoint that allows old clients to keep working.
72
72
It uses the global variable C<$::web_api > to access the new API.
73
73
74
+ Fastly CDN will redirect /report to /api/old_format_reports.
75
+
76
+ We need `/api` in the path so the k8 Ingest knows to sent to the correct
77
+ container.
78
+
74
79
=cut
75
80
76
- post ' /report ' => sub {
81
+ post ' /api/old_format_reports ' => sub {
77
82
my $start = time ();
78
83
my $data = from_json(encode(' utf-8' , params-> {json }), { utf8 => 1 });
79
84
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ $schema->txn_do(
57
57
58
58
$schema -> txn_do(
59
59
sub {
60
- note(" Backward compatibility: POST /report " );
60
+ note(" Backward compatibility: POST /api/old_format_reports " );
61
61
my $response = $tester -> request(
62
62
HTTP::Request-> new(
63
- POST => ' /report ' ,
63
+ POST => ' /api/old_format_reports ' ,
64
64
[ ' Content-type' => ' application/x-www-form-urlencoded' ],
65
65
join (" =" , map {uri_escape($_ ) } " json" , $jsn_rpt )
66
66
)
You can’t perform that action at this time.
0 commit comments