Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoped Resources and Profiles and albums #31

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove required role
  • Loading branch information
JSH32 committed Nov 17, 2022
commit f63d67115fe1f95f2fc401f51a35899cee0d77ed
4 changes: 0 additions & 4 deletions src/routes/application.rs
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ pub fn get_routes() -> Scope {
}

/// Get token by application ID
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `false`
#[utoipa::path(
@@ -47,7 +46,6 @@ async fn token(
}

/// Get token info
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `false`
#[utoipa::path(
@@ -76,7 +74,6 @@ async fn info(
}

/// Create an application
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `false`
#[utoipa::path(
@@ -102,7 +99,6 @@ async fn create(
}

/// Delete an application
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `false`
#[utoipa::path(
4 changes: 0 additions & 4 deletions src/routes/file.rs
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@ pub fn get_routes() -> Scope {
}

/// Delete file data by ID.
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(
@@ -49,7 +48,6 @@ async fn delete_file(

/// Delete multiple files by ID.
/// This will ignore any invalid IDs.
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(
@@ -74,7 +72,6 @@ async fn delete_files(
}

/// Get file data by ID
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(
@@ -104,7 +101,6 @@ async fn info(

/// Upload a file.
/// You can only upload a file for yourself regardless of admin status.
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(
2 changes: 0 additions & 2 deletions src/routes/user/file.rs
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ pub fn get_routes() -> Scope {
}

/// Get a paginated list of files
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(
@@ -56,7 +55,6 @@ async fn list(
}

/// Get file stats for user
/// - Minimum required role: `user`
/// - Allow unverified users: `false`
/// - Application token allowed: `true`
#[utoipa::path(