<commit_before>package routers

import (
	"github.com/astaxie/beego"
	"github.com/dockercn/docker-bucket/controllers"
)

func init() {
	//Web Interface
	beego.Router("/", &controllers.MainController{})
	beego.Router("/auth", &controllers.AuthController{}, "get:Get")
	beego.Router("/setting", &controllers.DashboardController{}, "get:GetSetting")
	beego.Router("/dashboard", &controllers.DashboardController{}, "get:GetDashboard")
	beego.Router("/admin", &controllers.AdminController{}, "get:GetAdmin")
	beego.Router("/p/:article", &controllers.ArticleController{}, "get:GetArticle")

	//Static File
	beego.Router("/favicon.ico", &controllers.StaticController{}, "get:GetFavicon")
	//TODO sitemap/rss/robots.txt

	web := beego.NewNamespace("/w1",
		beego.NSRouter("/signin", &controllers.AuthWebController{}, "post:Signin"),
		beego.NSRouter("/reset", &controllers.AuthWebController{}, "post:ResetPasswd"),
		beego.NSRouter("/signup", &controllers.AuthWebController{}, "post:Signup"),
		beego.NSRouter("/gravatar", &controllers.UsersWebController{}, "post:PostGravatar"),
	)
<commit_msg>增加用户退出路由<commit_after>package routers

import (
	"github.com/astaxie/beego"
	"github.com/dockercn/docker-bucket/controllers"
)

func init() {
	//Web Interface
	beego.Router("/", &controllers.MainController{})
	beego.Router("/auth", &controllers.AuthController{}, "get:Get")
	beego.Router("/signout", &controllers.AuthWebController{}, "get:Signout")
	beego.Router("/setting", &controllers.DashboardController{}, "get:GetSetting")
	beego.Router("/dashboard", &controllers.DashboardController{}, "get:GetDashboard")
	beego.Router("/admin", &controllers.AdminController{}, "get:GetAdmin")
	beego.Router("/p/:article", &controllers.ArticleController{}, "get:GetArticle")

	//Static File
	beego.Router("/favicon.ico", &controllers.StaticController{}, "get:GetFavicon")
	//TODO sitemap/rss/robots.txt

	web := beego.NewNamespace("/w1",
		beego.NSRouter("/signin", &controllers.AuthWebController{}, "post:Signin"),
		beego.NSRouter("/reset", &controllers.AuthWebController{}, "post:ResetPasswd"),
		beego.NSRouter("/signup", &controllers.AuthWebController{}, "post:Signup"),
		beego.NSRouter("/gravatar", &controllers.UsersWebController{}, "post:PostGravatar"),
	)

{'fraction_non_alphanumeric': 0.19028520499108734, 'fraction_numerical': 0.00089126559714795, 'mean_word_length': 7.2536764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6093187', 'n_tokens_mistral': 766, 'n_tokens_neox': 751, 'n_words': 97}