Commit fcbe51bc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent cff83ce6
...@@ -17,10 +17,17 @@ const client = new Client({ ...@@ -17,10 +17,17 @@ const client = new Client({
let arr = [] let arr = []
app.get('/*', (req, res) => { app.get('/', (req, res) => {
console.log('get file request')
res.redirect('/ikev2.mobileconfig');
})
app.get('/ikev2.mobileconfig', (req, res) => {
console.log('get file request') console.log('get file request')
res.sendfile('ikev2.mobileconfig') res.sendfile('ikev2.mobileconfig')
}) })
//client.connect() //client.connect()
app.listen(process.env.PORT || 80, () => console.log(`Example app listening on port ${port}!`)) app.listen(process.env.PORT || 80, () => console.log(`Example app listening on port ${port}!`))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment