l a r g e visual cleanup
This commit is contained in:
parent
751b947bef
commit
77f6850c52
@ -1,30 +1,31 @@
|
|||||||
// TODO: this whole ass module bro i mean c'mon.... just just clean it
|
// TODO: this whole ass module bro i mean c'mon.... just just clean it
|
||||||
type rstr = &'static str;
|
type Rstr = &'static str;
|
||||||
|
|
||||||
pub const INVITE_CREATE: tstr = "/invite/create"; // @ perms::CREATE_INVITE
|
pub const SERVER_META: Rstr = "/meta"; // @returns server meta document TBD
|
||||||
|
pub const INVITE_CREATE: Rstr = "/invite/create"; // @ perms::CREATE_INVITE
|
||||||
|
|
||||||
pub const CHANNELS_LIST: tstr = "/channels/list"; // requires none
|
pub const CHANNELS_LIST: Rstr = "/channels/list"; // requires none
|
||||||
pub const CHANNELS_CREATE: tstr = "/channels/create"; // requires @name @kind perms::CREATE_CHANNEl
|
pub const CHANNELS_CREATE: Rstr = "/channels/create"; // requires @name @kind perms::CREATE_CHANNEl
|
||||||
pub const CHANNELS_DELETE: tstr = "/channels/delete"; // requires @name perms::DELETE_CHANNEL
|
pub const CHANNELS_DELETE: Rstr = "/channels/delete"; // requires @name perms::DELETE_CHANNEL
|
||||||
|
|
||||||
pub const MESSAGE_SEND: tstr = "/message/send"; // requires @content perms::MESSAGE_SEND
|
pub const MESSAGE_SEND: Rstr = "/message/send"; // requires @content perms::MESSAGE_SEND
|
||||||
|
|
||||||
pub const GET_ONLINE_MEMBERS: tstr = "/members/get_online";
|
pub const GET_ONLINE_MEMBERS: Rstr = "/members/get_online";
|
||||||
|
|
||||||
|
|
||||||
// ADMIN ROUTES
|
// ADMIN ROUTES
|
||||||
pub const SET_PERMS_BY_ADMIN: tstr = "/admin/setpermisions"; // @requires perms::ADMIN
|
pub const SET_PERMS_BY_ADMIN: Rstr = "/admin/setpermisions"; // @requires perms::ADMIN
|
||||||
pub const SET_NEW_ADMIN: tstr = "/owner/newadmin"; // @requiers: owner perms
|
pub const SET_NEW_ADMIN: Rstr = "/owner/newadmin"; // @requiers: owner perms
|
||||||
|
|
||||||
|
|
||||||
// TODO: here be dragons...
|
// TODO: here be dragons...
|
||||||
// potentially adding more bases later
|
// potentially adding more bases later
|
||||||
pub const DYNAMIC_ROUTE_BASES: [(tstr, bool);3] = [
|
pub const DYNAMIC_ROUTE_BASES: [(Rstr, bool);3] = [
|
||||||
("/join", true), // open
|
("/join", true), // open
|
||||||
("/public", true), // open : valid sections := neighbors|rules|description
|
("/public", true), // open : valid sections := neighbors|rules|description
|
||||||
("/user", false), // TODO: valid sections := /meta/<name>|/dm/<name>
|
("/user", false), // TODO: valid sections := /meta/<name>|/dm/<name>
|
||||||
];
|
];
|
||||||
pub const DYN_JOIN: tstr = DYNAMIC_ROUTE_BASES[0].0;
|
pub const DYN_JOIN: Rstr = DYNAMIC_ROUTE_BASES[0].0;
|
||||||
|
|
||||||
pub struct DynRoute {
|
pub struct DynRoute {
|
||||||
pub base: String,
|
pub base: String,
|
||||||
|
Loading…
Reference in New Issue
Block a user