15 lines
283 B
Go
15 lines
283 B
Go
package auth
|
|
|
|
import "github.com/go-chi/chi/v5"
|
|
|
|
func Routes(r chi.Router) {
|
|
r.Get("/mcu-login", ShowLogin)
|
|
r.Post("/mcu-login", DoLogin)
|
|
r.Get("/logout", DoLogout)
|
|
}
|
|
|
|
func ProtectedRoutes(r chi.Router) {
|
|
r.Get("/password", ShowPassword)
|
|
r.Post("/password", DoChangePassword)
|
|
}
|