This commit is contained in:
2017-10-02 00:31:44 +02:00
parent 1101dafc90
commit 504993861b
5 changed files with 103 additions and 112 deletions

View File

@ -153,6 +153,9 @@ func configure(app *aero.Application) *aero.Application {
app.Ajax("/paypal/cancel", paypal.Cancel)
app.Get("/api/paypal/payment/create", paypal.CreatePayment)
// Rewrite
app.Rewrite(Rewrite)
// Middleware
app.Use(middleware.Firewall())
app.Use(middleware.Log())
@ -173,5 +176,10 @@ func configure(app *aero.Application) *aero.Application {
// Authentication
auth.Install(app)
// Specify test routes
for route, examples := range routeTests {
app.Test(route, examples)
}
return app
}