Update routes.dart
This commit is contained in:
parent
9822c03d52
commit
47b28d524d
1 changed files with 4 additions and 2 deletions
|
@ -11,11 +11,13 @@ configureBefore(Angel app) async {
|
||||||
/// Put your app routes here!
|
/// Put your app routes here!
|
||||||
configureRoutes(Angel app) async {
|
configureRoutes(Angel app) async {
|
||||||
app.get('/', (req, ResponseContext res) => res.render('hello'));
|
app.get('/', (req, ResponseContext res) => res.render('hello'));
|
||||||
await app.configure(new PubServeLayer());
|
|
||||||
await app.configure(new VirtualDirectory());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configureAfter(Angel app) async {
|
configureAfter(Angel app) async {
|
||||||
|
// Static server, and pub serve while in development
|
||||||
|
await app.configure(new PubServeLayer());
|
||||||
|
await app.configure(new VirtualDirectory());
|
||||||
|
|
||||||
// Set our application up to handle different errors.
|
// Set our application up to handle different errors.
|
||||||
var errors = new ErrorHandler(handlers: {
|
var errors = new ErrorHandler(handlers: {
|
||||||
404: (req, res) async =>
|
404: (req, res) async =>
|
||||||
|
|
Loading…
Reference in a new issue