-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.go
26 lines (24 loc) · 959 Bytes
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package index
import (
"github.com/admpub/nging/v5/application/handler/manager"
uploadLibrary "github.com/admpub/nging/v5/application/library/upload"
"github.com/admpub/webx/application/initialize/frontend"
"github.com/webx-top/echo"
)
func init() {
frontend.Register(func(g echo.RouteRegister) {
g.Route(`GET,HEAD`, uploadLibrary.UploadURLPath+`:subdir/*`, manager.File)
g.Route(`GET,POST`, `/`, Index)
g.Route(`GET,POST`, `/index`, Index)
g.Route(`GET,POST`, `/search`, Search)
g.Route(`GET,POST`, `/sign_up`, SignUp)
g.Route(`GET,POST`, `/sign_in`, SignIn)
g.Route(`GET,POST`, `/sign_out`, SignOut)
g.Route(`GET,POST`, `/forgot`, Forgot)
g.Route(`GET,POST`, `/verification/callback/:provider/:recid/:timestamp/:token`, Verification)
g.Route(`GET,POST`, `/custom/:page`, Custom)
g.Route(`GET,POST`, `/error_code`, ErrorCode)
g.Route(`GET,POST`, `/secure_key`, SecureKey)
g.Route(`GET,POST`, `/advert/:idents`, Advert)
})
}