Skip to content

Commit 7a0fce9

Browse files
api env update
1 parent 1e5363f commit 7a0fce9

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

client/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REACT_APP_API_URL=http://localhost:5000
2+
REACT_APP_APP_URL=http://localhost:3000
3+
REACT_APP_APP_ID=kommunicate_app_id

server/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PORT = "5000"
2-
CONNECTION_URL = "Mongo db url"
2+
DATABASE_URL = "Mongo db url"
33
JWT_SECRET = "This could be anything like test"

server/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ app.use(express.urlencoded({limit: "30mb", extended: true}))
1919
app.use(cors());
2020

2121

22-
app.get('/api',(req, res) => {
22+
app.get('/',(req, res) => {
2323
res.send("This is a stack overflow clone API")
2424
})
25-
app.use('/api/user', userRoutes)
26-
app.use('/api/questions', questionRoutes)
27-
app.use('/api/answer', answerRoutes)
25+
app.use('/user', userRoutes)
26+
app.use('/questions', questionRoutes)
27+
app.use('/answer', answerRoutes)
2828

2929
const PORT = process.env.PORT || 5000
3030
const DATABASE_URL = process.env.DATABASE_URL

0 commit comments

Comments
 (0)