growlauncher / index.js
fast72's picture
Update index.js
cb472d7 verified
raw
history blame contribute delete
359 Bytes
const express = require('express')
const path = require('path')
const app = express()
const port = 7860
app.use(express.static(path.join(__dirname, 'public')));
app.get('/dl/GrowLauncher.apk', (req, res) => {
res.download(path.join(__dirname, 'GrowLauncher.apk'))
})
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`)
})