Example #1
0
func setupPage(app *server.App) {
	var Page = app.Page()
	gate := server.NewPageInstanceHandler(middleware.Gate("family"))
	Page.GET("/", gate, page.Title("テレビ予約一覧"))
	Page.GET("/keywords.html", gate, page.Title("キーワード一覧"))
	Page.GET("/exclusions.html", gate, page.Title("除外ルール一覧"))
	Page.GET("/channels.html", gate, page.Title("チャンネル一覧"))
	Page.GET("/configs.html", gate, page.Title("設定"))
}
Example #2
0
package handlers

import (
	"lib/server"
	"lib/server/middleware"
)

var AdminGate = middleware.Gate("hplink.admin")
var AdminGatePage = server.NewPageInstanceHandler(AdminGate)