add: policy achievements
This commit is contained in:
parent
d90b08720a
commit
973373426a
7 changed files with 83 additions and 13 deletions
|
@ -19,6 +19,7 @@ use axum::{
|
|||
use serde::Deserialize;
|
||||
use tetratto_core::model::{
|
||||
apps::AppQuota,
|
||||
auth::AchievementName,
|
||||
communities::{
|
||||
CommunityContext, CommunityJoinAccess, CommunityReadAccess, CommunityWriteAccess,
|
||||
PollOption, PostContext,
|
||||
|
@ -387,6 +388,10 @@ pub fn routes() -> Router {
|
|||
"/auth/user/{id}/grants/{app}/refresh",
|
||||
post(auth::profile::refresh_grant_request),
|
||||
)
|
||||
.route(
|
||||
"/auth/user/me/achievement",
|
||||
post(auth::profile::self_serve_achievement_request),
|
||||
)
|
||||
// apps
|
||||
.route("/apps", post(apps::create_request))
|
||||
.route("/apps/{id}/title", post(apps::update_title_request))
|
||||
|
@ -976,7 +981,13 @@ pub struct AddJournalDir {
|
|||
pub struct RemoveJournalDir {
|
||||
pub dir: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateNoteTags {
|
||||
pub tags: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct AwardAchievement {
|
||||
pub name: AchievementName,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue