👽 Update API to microservices

♻️ Refactor router pushes
This commit is contained in:
2025-07-17 14:35:09 +08:00
parent a7454edec0
commit e6c58b7b63
109 changed files with 9156 additions and 344 deletions

View File

@@ -17,7 +17,7 @@ part 'post_detail.g.dart';
@riverpod
Future<SnPost?> post(Ref ref, String id) async {
final client = ref.watch(apiClientProvider);
final resp = await client.get('/posts/$id');
final resp = await client.get('/sphere/posts/$id');
return SnPost.fromJson(resp.data);
}