feat: Working on search for purchase orders.
This commit is contained in:
@@ -9,14 +9,14 @@ extension RoutesBuilder {
|
||||
// Used to ensure views are protected, redirects users to the login page if they're
|
||||
// not authenticated.
|
||||
var protected: any RoutesBuilder {
|
||||
// return self
|
||||
return grouped(
|
||||
UserPasswordAuthenticator(),
|
||||
UserSessionAuthenticator(),
|
||||
User.redirectMiddleware { req in
|
||||
"login?next=\(req.url)"
|
||||
}
|
||||
)
|
||||
return self
|
||||
// return grouped(
|
||||
// UserPasswordAuthenticator(),
|
||||
// UserSessionAuthenticator(),
|
||||
// User.redirectMiddleware { req in
|
||||
// "/login?next=\(req.url)"
|
||||
// }
|
||||
// )
|
||||
}
|
||||
|
||||
func apiUnprotected(route: PathComponent) -> any RoutesBuilder {
|
||||
|
||||
Reference in New Issue
Block a user