bliss 0.1.5 copy "bliss: ^0.1.5" to clipboard
bliss: ^0.1.5 copied to clipboard

outdatedDart 1 only

An easy to learn server side framework for Dart.

example/bliss_example.dart

library bliss.example;

import 'dart:async';

import 'package:bliss/bliss.dart';

void main() {
  
  Server server = new Server()
    ..setStaticHandler('web')
    ..addHandler('get', '/api/:example', returnData)
    ..start(); // Run the server to start listening for requests

}

// You can use asynchronous function for the handler task's and it will await 
// for the response.
Future returnData(data) async => data;
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

An easy to learn server side framework for Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

mime

More

Packages that depend on bliss