Add support for statistics routes
This commit is contained in:
@@ -19,6 +19,7 @@ pub struct NewTokenInfo {
|
||||
pub right_inbox: bool,
|
||||
pub right_file: bool,
|
||||
pub right_auth: bool,
|
||||
pub right_stats: bool,
|
||||
}
|
||||
|
||||
/// Create a new token
|
||||
@@ -39,6 +40,7 @@ pub async fn create(new_token: NewTokenInfo) -> anyhow::Result<Token> {
|
||||
right_movement: new_token.right_movement,
|
||||
right_inbox: new_token.right_inbox,
|
||||
right_file: new_token.right_file,
|
||||
right_stats: new_token.right_stats,
|
||||
};
|
||||
|
||||
let res = diesel::insert_into(tokens::table)
|
||||
|
Reference in New Issue
Block a user