Skip to content

Commit

Permalink
chores: add hello world and update redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
SirusCodes committed Mar 16, 2024
1 parent 21a37db commit 041ea08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/api/oauth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Future<Response> onRequest(RequestContext context) async {
'client_secret': Platform.environment['GOOGLE_CLIENT_SECRET'],
'code': body['code'],
'grant_type': 'authorization_code',
'redirect_uri': null,
'redirect_uri': 'https://heartry.darshanrander.com/',
},
);

return Response(body: response.body);
return Response(body: response.body, statusCode: response.statusCode);
}
5 changes: 5 additions & 0 deletions server/routes/index.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import 'package:dart_frog/dart_frog.dart';

Future<Response> onRequest(RequestContext context) async {
return Response(body: 'Hello World!');
}

0 comments on commit 041ea08

Please sign in to comment.