Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
restructure code
  • Loading branch information
codekeyz committed Apr 28, 2024
commit f2d49f52a40c46b8437ed28d41648c6f136e7eca
2 changes: 1 addition & 1 deletion templates/crud_rest_api_dartfrog/routes/repos/[repo].dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:io';

import 'package:collection/collection.dart';
import 'package:crud_rest_api_dartfrog/users.dart';
import 'package:dart_frog/dart_frog.dart';

import '../_users.dart';
import 'index.dart';

Future<Response> onRequest(RequestContext context, String id) async {
Expand Down
3 changes: 1 addition & 2 deletions templates/crud_rest_api_dartfrog/routes/repos/index.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import 'dart:async';
import 'dart:io';

import 'package:crud_rest_api_dartfrog/users.dart';
import 'package:dart_frog/dart_frog.dart';

import '../_users.dart';

/// These two objects [_repos] & [userRepos] will serve as our faux database
final _repos = [
{"id": 0, "name": 'express', "url": 'github.com/expressjs/express'},
Expand Down