Skip to content

Commit

Permalink
docs: updating info on node & fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
moebiusmania committed Jun 9, 2024
1 parent 0e2f1e5 commit 8dd96ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A clean and modern web UI dashboard that displays some quick informations from t

## Built with

- [Node.js](https://nodejs.org/) v16 (_planning to upgrade to v18 as soon as it hits LTS_)
- [Node.js](https://nodejs.org/) v20.x
- [Vue 3](https://vuejs.org/) - main UI component library
- [Nuxt 3](https://v3.nuxtjs.org/) - application and API framework
- [Typescript](https://www.typescriptlang.org/) - static type checking
Expand Down
4 changes: 4 additions & 0 deletions server/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import crypto from "node:crypto";

const ENDPOINT: string = "https://www.atm.it/it/Pagine/default.aspx";

/**
* Explanation for this fetch configuration can be found in
* https://github.com/nuxt/nuxt/issues/21609
*/
const getPage = async (): Promise<string> =>
$fetch(ENDPOINT, {
mode: "cors",
Expand Down

0 comments on commit 8dd96ec

Please sign in to comment.