diff options
| author | Bobby <[email protected]> | 2025-12-22 13:46:50 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-22 13:46:50 +0530 |
| commit | 32ee8047eba06c9f1c7575b66fc0f9195657ac04 (patch) | |
| tree | ed781e7b05aeba0b5db78e69918edd6a0928c9e1 /router/auth.go | |
| parent | f17d9142781eb1a659ea53311d9225b244ad209c (diff) | |
| download | lain-32ee8047eba06c9f1c7575b66fc0f9195657ac04.tar.xz lain-32ee8047eba06c9f1c7575b66fc0f9195657ac04.zip | |
auth engine, basic login working
Diffstat (limited to 'router/auth.go')
| -rw-r--r-- | router/auth.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/router/auth.go b/router/auth.go index 8c13e37..728e985 100644 --- a/router/auth.go +++ b/router/auth.go @@ -10,4 +10,7 @@ func init() { urls.SetNamespace("auth") urls.Path(types.GET, "/login", controllers.LoginPage, "login") + urls.Path(types.GET, "/logout", controllers.Logout, "logout") + + urls.Path(types.POST, "/login", controllers.Login, "login.submit") } |
