Moved server packages to a separate folder

This commit is contained in:
Eduard Urbach 2019-11-18 18:39:59 +09:00
parent db366360c7
commit f3c14a4ed6
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
37 changed files with 28 additions and 23 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get a single AMV. // Get a single AMV.

View File

@ -8,7 +8,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
const ( const (

View File

@ -8,7 +8,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils/infinitescroll" "github.com/animenotifier/notify.moe/utils/infinitescroll"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
) )

View File

@ -8,7 +8,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
) )

View File

@ -7,7 +7,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils/editform" "github.com/animenotifier/notify.moe/utils/editform"
) )

View File

@ -5,7 +5,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get ... // Get ...

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Feed shows the group front page. // Feed shows the group front page.

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Info shows the group information page. // Info shows the group information page.

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Members shows the group members. // Members shows the group members.

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get post. // Get post.

View File

@ -8,7 +8,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
) )

View File

@ -3,7 +3,7 @@ package quote
import ( import (
"net/http" "net/http"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"

View File

@ -7,7 +7,7 @@ import (
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get quote. // Get quote.

View File

@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils/editform" "github.com/animenotifier/notify.moe/utils/editform"
"github.com/aerogo/aero" "github.com/aerogo/aero"

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
) )

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get track. // Get track.

View File

@ -6,7 +6,7 @@ import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get thread. // Get thread.

View File

@ -1,5 +1,6 @@
package server package server
// Main runs the main loop of the web server.
func Main() { func Main() {
app := New() app := New()
app.Run() app.Run()

View File

@ -9,15 +9,16 @@ import (
"github.com/akyoto/color" "github.com/akyoto/color"
"github.com/animenotifier/notify.moe/arn" "github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/assets" "github.com/animenotifier/notify.moe/assets"
"github.com/animenotifier/notify.moe/auth"
"github.com/animenotifier/notify.moe/graphql"
"github.com/animenotifier/notify.moe/middleware"
"github.com/animenotifier/notify.moe/pages" "github.com/animenotifier/notify.moe/pages"
"github.com/animenotifier/notify.moe/server/auth"
"github.com/animenotifier/notify.moe/server/graphql"
"github.com/animenotifier/notify.moe/server/https"
"github.com/animenotifier/notify.moe/server/middleware"
"github.com/animenotifier/notify.moe/utils/htmlemail" "github.com/animenotifier/notify.moe/utils/htmlemail"
"github.com/animenotifier/notify.moe/utils/https"
"github.com/animenotifier/notify.moe/utils/routetests" "github.com/animenotifier/notify.moe/utils/routetests"
) )
// New creates a new web server.
func New() *aero.Application { func New() *aero.Application {
app := aero.New() app := aero.New()

3
utils/README.md Normal file
View File

@ -0,0 +1,3 @@
# utils
This folder should be deleted in future versions.

View File

@ -2,7 +2,7 @@ package page
import ( import (
"github.com/aerogo/aero" "github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/middleware" "github.com/animenotifier/notify.moe/server/middleware"
) )
// Get registers a layout rendered route and a contents-only route. // Get registers a layout rendered route and a contents-only route.