Skip to content

Commit

Permalink
Add whitepaper
Browse files Browse the repository at this point in the history
  • Loading branch information
mutatrum committed Feb 23, 2025
1 parent 9c03546 commit cd00c05
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/http_server/axe-os/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/bitcoin.pdf"
],
"styles": [
"src/styles.scss",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export class AppMenuComponent implements OnInit {
{ label: 'Customization', icon: 'pi pi-fw pi-palette', routerLink: ['design'] },
{ label: 'Settings', icon: 'pi pi-fw pi-cog', routerLink: ['settings'] },
{ label: 'Logs', icon: 'pi pi-fw pi-list', routerLink: ['logs'] },
{ label: 'Whitepaper', icon: 'pi pi-fw pi-bitcoin', command: () => window.open('/bitcoin.pdf', '_blank') },
]
}

];
}

Expand Down
Binary file added main/http_server/axe-os/src/bitcoin.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions main/http_server/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ static esp_err_t set_content_type_from_file(httpd_req_t * req, const char * file
type = "image/x-icon";
} else if (CHECK_FILE_EXTENSION(filepath, ".svg")) {
type = "text/xml";
} else if (CHECK_FILE_EXTENSION(filepath, ".pdf")) {
type = "application/pdf";
}
return httpd_resp_set_type(req, type);
}
Expand Down

0 comments on commit cd00c05

Please sign in to comment.