Releases: deriegle/dart-express
Releases · deriegle/dart-express
Add separate Router ability and print routes
Added the ability to create separate routers
api_router.dart
Router apiRouter() {
final router = Router();
router.get('/', (req, res) {
res.json({ 'hello': 'world' });
});
}
view_router.dart
Router viewRouter() {
final router = Router();
router.get('/', (req, res) {
res.render('index');
});
return router;
}
main.dart
import 'api_router.dart';
import 'view_router.dart';
void main() {
final app = express();
app.useRouter('/', viewRouter());
app.useRouter('/api', apiRouter());
app.listen(3000);
}
Added the ability to print routes
All routes will show after listen is called.
final app = express();
app.set('print routes', true);
app.get('/', (req, res) => res.json({ 'hello': true }));
app.listen(3000);
[GET] /
Listening on port 3000
Add basic Logger middleware and fix middleware matching issue
0.5.1 Bump to version 0.5.1
The one with CORS middleware
We've added a CORS middleware for the dart express library.
Release 0.2.4.1
Trying to get Github Actions to auto-publish
Version 0.2.4
- Add View Engine tests to ensure view rendering is working as expected
- Add Markdown View Engine to parse and display Markdown files
- Add documentation for public API and clean up interfaces