Skip to content

Commit

Permalink
remove quota
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall authored and anastasiya1155 committed Apr 23, 2024
1 parent 49fe36b commit c410dfd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 117 deletions.
16 changes: 0 additions & 16 deletions server/bleep/src/webserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub mod intelligence;
pub mod middleware;
mod project;
mod query;
mod quota;
pub mod repos;
mod search;
mod studio;
Expand Down Expand Up @@ -166,11 +165,6 @@ pub async fn start(app: Application) -> anyhow::Result<()> {
get(template::get)
.patch(template::patch)
.delete(template::delete),
)
.route("/quota", get(quota::get))
.route(
"/quota/create-checkout-session",
get(quota::create_checkout_session),
);

if app.env.allow(Feature::AnyPathScan) {
Expand Down Expand Up @@ -304,16 +298,6 @@ impl Error {
},
}
}

fn unauthorized<S: std::fmt::Display>(message: S) -> Self {
Error {
status: StatusCode::UNAUTHORIZED,
body: EndpointError {
kind: ErrorKind::User,
message: message.to_string().into(),
},
}
}
}

impl From<anyhow::Error> for Error {
Expand Down
101 changes: 0 additions & 101 deletions server/bleep/src/webserver/quota.rs

This file was deleted.

0 comments on commit c410dfd

Please sign in to comment.