Pass test
This commit is contained in:
parent
083ef64746
commit
4e5472260d
@ -8,7 +8,8 @@ import (
|
|||||||
"github.com/animenotifier/notify.moe/components/js"
|
"github.com/animenotifier/notify.moe/components/js"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
// configureAssets adds all the routes used for media assets.
|
||||||
|
func configureAssets(app *aero.Application) {
|
||||||
// Script bundle
|
// Script bundle
|
||||||
scriptBundle := js.Bundle()
|
scriptBundle := js.Bundle()
|
||||||
|
|
||||||
|
5
main.go
5
main.go
@ -153,8 +153,11 @@ func configure(app *aero.Application) *aero.Application {
|
|||||||
app.Ajax("/paypal/cancel", paypal.Cancel)
|
app.Ajax("/paypal/cancel", paypal.Cancel)
|
||||||
app.Get("/api/paypal/payment/create", paypal.CreatePayment)
|
app.Get("/api/paypal/payment/create", paypal.CreatePayment)
|
||||||
|
|
||||||
|
// Assets
|
||||||
|
configureAssets(app)
|
||||||
|
|
||||||
// Rewrite
|
// Rewrite
|
||||||
app.Rewrite(Rewrite)
|
app.Rewrite(rewrite)
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
app.Use(middleware.Firewall())
|
app.Use(middleware.Firewall())
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Rewrite will rewrite certain routes
|
// rewrite will rewrite certain routes
|
||||||
func Rewrite(ctx *aero.RewriteContext) {
|
func rewrite(ctx *aero.RewriteContext) {
|
||||||
requestURI := ctx.URI()
|
requestURI := ctx.URI()
|
||||||
|
|
||||||
// User profiles
|
// User profiles
|
||||||
|
Loading…
Reference in New Issue
Block a user