Skip to content

Commit

Permalink
proxy public timeline to home timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
videah committed Nov 1, 2023
1 parent bde04e4 commit 1b3489d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions routes/api/v1/timelines/public.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'package:dart_frog/dart_frog.dart';

import 'home.dart' as home;

/// This is temporarily just a copy of the home timeline.
/// Clients like Twidere expect this endpoint to exist.
Future<Response> onRequest(RequestContext context) async {
// TODO(videah): implement this properly.
return home.onRequest(context);
}

0 comments on commit 1b3489d

Please sign in to comment.