diff --git a/flake.lock b/flake.lock index 782aaad..dade030 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1753250450, - "narHash": "sha256-i+CQV2rPmP8wHxj0aq4siYyohHwVlsh40kV89f3nw1s=", + "lastModified": 1756542300, + "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=", "owner": "nixos", "repo": "nixpkgs", - "rev": "fc02ee70efb805d3b2865908a13ddd4474557ecf", + "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index b61cb1a..fb52ec3 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,7 @@ nodejs_22 pnpm just - foundry + foundry ]; shellHook = '' if [ ! -d node_modules/ ]; then @@ -50,6 +50,7 @@ echo Installing foundry env forge i fi + alias jarvis=just export PATH+=:$(pwd)/node_modules/.bin echo entering ft_trans env ''; diff --git a/src/api/auth/default.js b/src/api/auth/default.js index dd706e8..0650fa1 100644 --- a/src/api/auth/default.js +++ b/src/api/auth/default.js @@ -24,8 +24,9 @@ authDB.prepareDB(); export default async function(fastify, options) { fastify.register(cors, { - origin: "*", - methods: ["GET", "POST", "DELETE"] + origin: "http://localhost:5173", + credentials: true, + methods: [ "GET", "POST", "DELETE", "OPTIONS" ] }); fastify.register(fastifyJWT, { diff --git a/src/front/index.html b/src/front/index.html index f2f5a6a..233ae24 100644 --- a/src/front/index.html +++ b/src/front/index.html @@ -1,19 +1,56 @@ -
- - -🚀 Looks like it's working!
- -