torrust_index_backend/services/
about.rs1use crate::web::api::v1::routes::API_VERSION_URL_PREFIX;
3
4#[must_use]
5pub fn index_page() -> String {
6 page()
7}
8
9#[must_use]
10pub fn page() -> String {
11 format!(
12 r#"
13 <html>
14 <head>
15 <title>About</title>
16 </head>
17 <body style="margin-left: auto;margin-right: auto;max-width: 30em;">
18 <h1>Torrust Index Backend</h1>
19
20 <h2>About</h2>
21
22 <p>Hi! This is a running <a href="https://github.com/torrust/torrust-index-backend">torrust-index-backend</a>.</p>
23 </body>
24 <footer style="padding: 1.25em 0;border-top: dotted 1px;">
25 <a href="/{API_VERSION_URL_PREFIX}/about/license">license</a>
26 </footer>
27 </html>
28"#
29 )
30}
31
32#[must_use]
33pub fn license_page() -> String {
34 format!(
35 r#"
36 <html>
37 <head>
38 <title>Licensing</title>
39 </head>
40 <body style="margin-left: auto;margin-right: auto;max-width: 30em;">
41 <h1>Torrust Index Backend</h1>
42
43 <h2>Licensing</h2>
44
45 <h3>Multiple Licenses</h3>
46
47 <p>This repository has multiple licenses depending on the content type, the date of contributions or stemming from external component licenses that were not developed by any of Torrust team members or Torrust repository contributors.</p>
48
49 <p>The two main applicable license to most of its content are:</p>
50
51 <p>- For Code -- <a href="https://github.com/torrust/torrust-index-backend/blob/main/licensing/agpl-3.0.md">agpl-3.0</a></p>
52
53 <p>- For Media (Images, etc.) -- <a href="https://github.com/torrust/torrust-index-backend/blob/main/licensing/cc-by-sa.md">cc-by-sa</a></p>
54
55 <p>If you want to read more about all the licenses and how they apply please refer to the <a href="https://github.com/torrust/torrust-index-backend/blob/develop/licensing/contributor_agreement_v01.md">contributor agreement</a>.</p>
56 </body>
57 <footer style="padding: 1.25em 0;border-top: dotted 1px;">
58 <a href="/{API_VERSION_URL_PREFIX}/about">about</a>
59 </footer>
60 </html>
61"#
62 )
63}