Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
make some trivial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigansh committed Aug 11, 2021
1 parent 20951c8 commit 4e770a9
Show file tree
Hide file tree
Showing 4 changed files with 354 additions and 360 deletions.
12 changes: 2 additions & 10 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const express = require('express'),
dotenv = require('dotenv'),
dotenv = require('dotenv').config(),
methodOverride = require('method-override'),
expressSanitizer = require('express-sanitizer'),
app = express()

app.set('view engine', 'ejs')

app.use(express.urlencoded({ extended: true }))
app.use(express.static('public'))
app.use(expressSanitizer())
Expand All @@ -14,7 +15,6 @@ const mongoConnect = require('./connections/mongoConnect')
const blogRoute = require('./router/blogs')

mongoConnect
dotenv.config()

app.get('/', (req, res) => {
res.render('index')
Expand All @@ -26,14 +26,6 @@ app.get('/videos', (req, res) => {

app.use('/blogs', blogRoute)

app.get('sitemap.xml', (req, res) => {
res.sendFile('sitemap.xml', { root: __dirname })
})

app.get('robots.txt', (req, res) => {
res.sendFile('robots.txt', { root: __dirname })
})

app.listen(process.env.PORT || 3000, () => {
console.log('Connected')
})
2 changes: 1 addition & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ User-agent: *
Allow: /
Disallow: /blogs/new

Sitemap: https://tvmultiverse28.herokuapp.com/sitemap.xml
Sitemap: https://multiversetv.ml/sitemap.xml
Loading

0 comments on commit 4e770a9

Please sign in to comment.