Added API examples

This commit is contained in:
2018-03-28 01:32:49 +02:00
parent f3b9eff1f4
commit c5de0c6d6f
7 changed files with 99 additions and 49 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/animenotifier/notify.moe/auth"
"github.com/animenotifier/notify.moe/middleware"
"github.com/animenotifier/notify.moe/pages"
"github.com/animenotifier/notify.moe/utils/routetests"
)
var app = aero.New()
@ -73,7 +74,7 @@ func configure(app *aero.Application) *aero.Application {
})
// Specify test routes
for route, examples := range routeTests {
for route, examples := range routetests.All() {
app.Test(route, examples)
}