feat: Moves employee views to their own controller, updates css, and employee table view.

This commit is contained in:
2025-01-07 17:07:37 -05:00
parent 08a0a8e1a3
commit 6eb723a7cf
11 changed files with 215 additions and 81 deletions

View File

@@ -0,0 +1,10 @@
import Vapor
extension RoutesBuilder {
// Used to ensure views are protected, redirects users to the login page if they're
// not authenticated.
var protected: any RoutesBuilder {
grouped(User.credentialsAuthenticator(), User.redirectMiddleware(path: "login"))
}
}