add: drawings in questions
This commit is contained in:
parent
6be729de50
commit
16843a6ab8
28 changed files with 1181 additions and 32 deletions
|
@ -57,10 +57,18 @@ pub async fn get_css_request(
|
|||
|
||||
let note = match data.get_note_by_journal_title(id, "journal.css").await {
|
||||
Ok(x) => x,
|
||||
Err(e) => return ([("Content-Type", "text/plain")], format!("/* {e} */")),
|
||||
Err(e) => {
|
||||
return (
|
||||
[("Content-Type", "text/css"), ("Cache-Control", "no-cache")],
|
||||
format!("/* {e} */"),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
([("Content-Type", "text/css")], note.content)
|
||||
(
|
||||
[("Content-Type", "text/css"), ("Cache-Control", "no-cache")],
|
||||
note.content,
|
||||
)
|
||||
}
|
||||
|
||||
pub async fn list_request(jar: CookieJar, Extension(data): Extension<State>) -> impl IntoResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue