Cleanup
This commit is contained in:
8
main.go
8
main.go
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user