FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stranger-things-api/server.js at master · api-tutorial/stranger-things-api · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
api-tutorial
/
stranger-things-api
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
9
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
stranger-things-api
/
server.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 310 Bytes
Breadcrumbs
stranger-things-api
/
server.js
Copy path
File metadata and controls
13 lines (10 loc) · 310 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
require
(
'dotenv'
)
.
config
(
)
;
require
(
'./lib/utils/connect'
)
(
)
;
const
app
=
require
(
'./lib/app'
)
;
const
PORT
=
process
.
env
.
PORT
||
8080
;
app
.
get
(
'/'
,
function
(
req
,
res
)
{
res
.
redirect
(
'https://strangerthingsapi.netlify.app/docs'
)
;
}
)
;
app
.
listen
(
PORT
,
(
)
=>
{
console
.
log
(
`listening at PORT
${
PORT
}
`
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL