simple_dart_api 0.0.1 copy "simple_dart_api: ^0.0.1" to clipboard
simple_dart_api: ^0.0.1 copied to clipboard

outdatedDart 1 only

SimpleDartAPI is a Dart Framework that will allow you to easily create your own API in Dart.

example/main.dart

import 'dart:io' show Directory;
import 'package:simple_dart_api/simple_dart_api.dart';

// Import all the controllers from your API to be executed by the Simple Dart API
import 'Controllers/ControllersLibrary.dart';
import 'Utility/MyMiddleware.dart';

main() {
  var router = new SimpleDartApi(Directory.current.path + "/Routes/");
  router.middleware = new MyMiddleware();
  router.launch("127.0.0.1", 8001);
}
0
likes
0
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

SimpleDartAPI is a Dart Framework that will allow you to easily create your own API in Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

browser, logging, route, yaml

More

Packages that depend on simple_dart_api