From d32cd74b52bf1180e48294fa31eb685a1f02b9c7 Mon Sep 17 00:00:00 2001 From: Oleg Belyaev Date: Sun, 23 Mar 2025 19:51:59 +0300 Subject: [PATCH] add favicon --- static/favicon.ico | Bin 0 -> 1150 bytes xq/restx_dict_cached.xq | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 static/favicon.ico diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..5afb139bbf2bcc5ca3739097dd345f769b444b0e GIT binary patch literal 1150 zcmbu8O>7cD6vrR6qHVQbMzn?)4<>r?U=wXX#fwG{#*0U9Y64e1sEHnWE&?SnCTNT` zM$<-MF(7R(*cde=9PmU8)*x1C1cbu!Q4sd;Tgk2*pqjXw-^}c6esA9Fna@ z?juVtk&cKCGCajIt$FT<_}z|y7Qdf6G#VdBGtbypsb}Y1>gl&p&p>AseSLkMs?{nr zn@xItIsh+2FYYn^(6^NXDYaP`!(<3jvS-w`m!Gg1dz>URbLt0ntY?|p{pfl+}KI@dHN2oE!S`_m}q{i^Wt=8C<>o3bf_l>bJPCfUoHvSP`2@XDj%!QpD+V z&)fZu=SNxph2VuX7{>U_HyF;&;^^_m7~SK<;4TNWL-r!q?=y3RQO`fS#2A=0pCB}! z3I2v-cCle|&Nb|g*~T>Y4(D9;vU$c#GQ{Y#96b1(;d9`nn9&m3rB;qjGs VZ~bGYQ!e#?mJ?Xh5KaCEzW|hp1)Bf> literal 0 HcmV?d00001 diff --git a/xq/restx_dict_cached.xq b/xq/restx_dict_cached.xq index 041d990..d8d2d39 100644 --- a/xq/restx_dict_cached.xq +++ b/xq/restx_dict_cached.xq @@ -160,6 +160,16 @@ declare function page:invert-lang($lang as xs:string) as xs:string { if($lang = 'en') then 'ru' else 'en' }; +(: =============================================================== :) +(: ============================ FAVICON ========================== :) +(: =============================================================== :) + +declare %rest:path("/favicon.ico") + %rest:GET + function page:favicon() { + fetch:binary('../static/favicon.ico') + }; + (: =============================================================== :) (: ======================= SEARCH ENTRYPOINT ===================== :) (: =============================================================== :)