Skip to content

Commit

Permalink
server side work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 20, 2024
1 parent 45aa2a4 commit 86f503c
Show file tree
Hide file tree
Showing 9 changed files with 913 additions and 34 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ logo.ai
/client/greenlock.d/accounts/
/client/greenlock.d/live/
/client/greenlock.d/config.json.bak
/server/greenlock.d/accounts/
/server/greenlock.d/live/
/server/greenlock.d/config.json.bak
node_modules/
28 changes: 0 additions & 28 deletions client/server.js

This file was deleted.

4 changes: 2 additions & 2 deletions client/src/apiClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const url = "http://ec2-18-191-174-59.us-east-2.compute.amazonaws.com:3001"
const url = ""

export async function claim(publicKey: string): Promise<boolean> {
const data = { publicKey: publicKey };
Expand Down Expand Up @@ -28,7 +28,7 @@ export async function checkUser(publicKey: string): Promise<boolean> {
}

export async function checkMax(): Promise<boolean> {
const response = await axios.get(`${url}:3001/max`);
const response = await axios.get(`${url}/max`);

if (response.status == 200) {
return response.data as boolean;
Expand Down
Loading

0 comments on commit 86f503c

Please sign in to comment.