Clean code

This commit is contained in:
Unknown 2014-03-15 05:53:13 -04:00
parent 4b8e888437
commit e9fdf1031d
3 changed files with 5 additions and 9 deletions

2
web.go
View file

@ -62,7 +62,7 @@ func runWeb(*cli.Context) {
m.Use(sessions.Sessions("my_session", store))
// Routers.
m.Get("/", auth.SignInRequire(false), routers.Home)
m.Get("/", auth.SignInRequire(true), routers.Home)
m.Any("/user/login", auth.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
m.Any("/user/logout", auth.SignInRequire(true), user.SignOut)
m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)