Added basic upload flow
This commit is contained in:
@ -53,6 +53,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/pages/statistics"
|
||||
"github.com/animenotifier/notify.moe/pages/terms"
|
||||
"github.com/animenotifier/notify.moe/pages/threads"
|
||||
"github.com/animenotifier/notify.moe/pages/upload"
|
||||
"github.com/animenotifier/notify.moe/pages/user"
|
||||
"github.com/animenotifier/notify.moe/pages/users"
|
||||
)
|
||||
@ -185,6 +186,9 @@ func Configure(app *aero.Application) {
|
||||
l.Page("/shop/history", shop.PurchaseHistory)
|
||||
app.Post("/api/shop/buy/:item/:quantity", shop.BuyItem)
|
||||
|
||||
// Upload
|
||||
app.Post("/api/upload/avatar", upload.Avatar)
|
||||
|
||||
// Admin
|
||||
l.Page("/admin", admin.Get)
|
||||
l.Page("/admin/webdev", admin.WebDev)
|
||||
|
Reference in New Issue
Block a user