aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index 61a4c6d..bac690b 100644
--- a/index.ts
+++ b/index.ts
@@ -2,7 +2,7 @@ import { readFileSync } from "fs"
const express = require('express')
const app = express()
-const port = 3001
+const port = 8008
const fs = require('fs')
const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: false }));
@@ -28,6 +28,9 @@ app.get('/src/bundle.js', (req:any, res:any) => {
app.get('/src/lights-out.gif', (req:any, res:any) => {
res.sendFile(__dirname+'/src/lights-out.gif')
})
+app.get('/src/kanna.gif', (req:any, res:any) => {
+ res.sendFile(__dirname+'/src/kanna.gif')
+})
app.post('/pub.key', async (req:{body:{json:boolean,sid:keyof keyring}}, res:any) => {
if(req.body.json){