Use uri! as much as possible instead of directly writing URLs
This commit is contained in:
@@ -16,5 +16,5 @@ fn notifications(conn: DbConn, user: User) -> Template {
|
||||
|
||||
#[get("/notifications", rank = 2)]
|
||||
fn notifications_auth() -> Flash<Redirect>{
|
||||
utils::requires_login("You need to be logged in order to see your notifications", "/notifications")
|
||||
utils::requires_login("You need to be logged in order to see your notifications", uri!(notifications))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user