add: better stripe endpoint
This commit is contained in:
parent
227cd3d2ac
commit
fdaa81422a
15 changed files with 118 additions and 778 deletions
|
@ -4,7 +4,6 @@ pub mod channels;
|
|||
pub mod communities;
|
||||
pub mod domains;
|
||||
pub mod journals;
|
||||
pub mod layouts;
|
||||
pub mod notes;
|
||||
pub mod notifications;
|
||||
pub mod reactions;
|
||||
|
@ -29,7 +28,6 @@ use tetratto_core::model::{
|
|||
},
|
||||
communities_permissions::CommunityPermission,
|
||||
journals::JournalPrivacyPermission,
|
||||
layouts::{CustomizablePage, LayoutPage, LayoutPrivacy},
|
||||
littleweb::{DomainData, DomainTld, ServiceFsEntry},
|
||||
oauth::AppScope,
|
||||
permissions::{FinePermission, SecondaryPermission},
|
||||
|
@ -625,17 +623,6 @@ pub fn routes() -> Router {
|
|||
// uploads
|
||||
.route("/uploads/{id}", get(uploads::get_request))
|
||||
.route("/uploads/{id}", delete(uploads::delete_request))
|
||||
// layouts
|
||||
.route("/layouts", get(layouts::list_request))
|
||||
.route("/layouts", post(layouts::create_request))
|
||||
.route("/layouts/{id}", get(layouts::get_request))
|
||||
.route("/layouts/{id}", delete(layouts::delete_request))
|
||||
.route("/layouts/{id}/title", post(layouts::update_name_request))
|
||||
.route(
|
||||
"/layouts/{id}/privacy",
|
||||
post(layouts::update_privacy_request),
|
||||
)
|
||||
.route("/layouts/{id}/pages", post(layouts::update_pages_request))
|
||||
// services
|
||||
.route("/services", get(services::list_request))
|
||||
.route("/services", post(services::create_request))
|
||||
|
@ -1055,27 +1042,6 @@ pub struct AwardAchievement {
|
|||
pub name: AchievementName,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct CreateLayout {
|
||||
pub name: String,
|
||||
pub replaces: CustomizablePage,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateLayoutName {
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateLayoutPrivacy {
|
||||
pub privacy: LayoutPrivacy,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateLayoutPages {
|
||||
pub pages: Vec<LayoutPage>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct CreateService {
|
||||
pub name: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue