This commit is contained in:
Unknown
2014-03-06 13:18:19 -05:00
parent 56a7ab4da5
commit 90223dcfc4
5 changed files with 29 additions and 10 deletions

1
web.go
View File

@ -59,6 +59,7 @@ func runWeb(*cli.Context) {
// Routers.
m.Get("/", routers.Home)
m.Any("/user/login", binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
m.Any("/user/logout", user.SignOut)
m.Any("/user/sign_up", binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)
m.Get("/user/profile", user.Profile) // should be /username