* Change join route to just /join

This commit is contained in:
shockrah
2021-05-26 12:08:55 -07:00
parent 03f6624943
commit 990ad347f7
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ pub const UPDATE_NEIGHBOR: Rstr = "/neighbor/update"; // @requires perms::ad
pub const REMOVE_NEIGHBOR: Rstr = "/neighbor/delete"; // @requires perms::add_neighbor @url(unique)
pub fn is_open(path: &str) -> bool {
return path.starts_with("/join") || path.starts_with("/meta");
return path.starts_with(INVITE_JOIN) || path.starts_with("/meta");
}
pub fn requires_perms(path: &str) -> bool {