New API
This commit is contained in:
parent
6c2782f18d
commit
77ae39d330
4
main.go
4
main.go
@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/aerogo/api"
|
|
||||||
"github.com/aerogo/session-store-aerospike"
|
"github.com/aerogo/session-store-aerospike"
|
||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
"github.com/animenotifier/notify.moe/auth"
|
"github.com/animenotifier/notify.moe/auth"
|
||||||
@ -175,8 +174,7 @@ func configure(app *aero.Application) *aero.Application {
|
|||||||
app.Use(middleware.UserInfo())
|
app.Use(middleware.UserInfo())
|
||||||
|
|
||||||
// API
|
// API
|
||||||
api := api.New("/api/", arn.DB)
|
arn.API.Install(app)
|
||||||
api.Install(app)
|
|
||||||
|
|
||||||
// Domain
|
// Domain
|
||||||
if arn.IsDevelopment() {
|
if arn.IsDevelopment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user