Commit a2ad0b0 1 parent ced9cc0 commit a2ad0b0 Copy full SHA for a2ad0b0
File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,6 @@ const { trackPlausibleEvent } = require("./services/plausible");
19
19
const app = express ( ) ;
20
20
const autogradingEnabled = process . env . NODE_ENV !== "test" && ! ! process . env . AUTOGRADING_SERVER ;
21
21
22
- /*
23
- Uncomment this if you want to create a wallet to send ETH or something...
24
- const INFURA = JSON.parse(fs.readFileSync("./infura.txt").toString().trim())
25
- const PK = fs.readFileSync("./pk.txt").toString().trim()
26
- let wallet = new ethers.Wallet(PK,new ethers.providers.InfuraProvider("goerli",INFURA))
27
- console.log(wallet.address)
28
- const checkWalletBalance = async ()=>{
29
- console.log("BALANCE:",ethers.utils.formatEther(await wallet.provider.getBalance(wallet.address)))
30
- }
31
- checkWalletBalance()
32
- */
33
-
34
22
app . use ( cors ( ) ) ;
35
23
36
24
app . use ( bodyParser . json ( ) ) ;
@@ -40,6 +28,10 @@ app.use("/events", eventsRoutes);
40
28
app . use ( "/builds" , buildsRoutes ) ;
41
29
app . use ( "/bg" , bgRoutes ) ;
42
30
31
+ app . get ( "/healthcheck" , ( _ , res ) => {
32
+ res . status ( 200 ) . send ( "ok" ) ;
33
+ } ) ;
34
+
43
35
app . get ( "/sign-message" , ( req , res ) => {
44
36
const messageId = req . query . messageId ?? "login" ;
45
37
const options = req . query ;
You can’t perform that action at this time.
0 commit comments