Skip to content

Commit 36c0440

Browse files
committed
Amend notice in ViewService.
1 parent 33fbdb1 commit 36c0440

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deepwell/src/services/view/structs.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ use crate::models::session::Model as SessionModel;
2626
use crate::models::site::Model as SiteModel;
2727
use crate::models::user::Model as UserModel;
2828

29+
// NOTE: Any changes to the output structures here, including the variant names,
30+
// MUST be reflected in framerail!
31+
2932
// TODO replace with actual user permissions type
3033
#[derive(Serialize, Deserialize, Debug, Copy, Clone)]
3134
pub struct UserPermissions;
@@ -51,8 +54,7 @@ pub struct PageRoute {
5154
pub extra: String,
5255
}
5356

54-
// NOTE: Any changes to the structure here, including the variant names,
55-
// MUST be reflected in framerail! See src/lib/server/load/page.ts
57+
// See also framerail src/lib/server/load/page.ts and src/routes/+error.svelte
5658
#[derive(Serialize, Debug, Clone)]
5759
#[serde(rename_all = "snake_case", tag = "type", content = "data")]
5860
pub enum GetPageViewOutput {
@@ -94,6 +96,7 @@ pub struct GetUserView<'a> {
9496
pub locales: Vec<String>,
9597
}
9698

99+
// See also framerail src/lib/server/load/admin.ts and src/routes/[x+2d]/admin/+error.svelte
97100
#[derive(Serialize, Debug, Clone)]
98101
#[serde(rename_all = "snake_case", tag = "type", content = "data")]
99102
pub enum GetUserViewOutput {
@@ -116,6 +119,7 @@ pub struct GetAdminView {
116119
pub locales: Vec<String>,
117120
}
118121

122+
// See also framerail src/lib/server/load/admin.ts and src/routes/[x+2d]/user/+error.svelte
119123
#[derive(Serialize, Debug, Clone)]
120124
#[serde(rename_all = "snake_case", tag = "type", content = "data")]
121125
pub enum GetAdminViewOutput {

0 commit comments

Comments
 (0)