Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 63d063f

Browse filesBrowse files
committed
Removed pm2, added wildcard router.
1 parent bb66b81 commit 63d063f
Copy full SHA for 63d063f

File tree

Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed

‎Dockerfile

Copy file name to clipboardExpand all lines: Dockerfile
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ RUN apk add --no-cache openssh
1313

1414
RUN npm install
1515
RUN npm install --quiet node-gyp -g
16-
RUN npm install pm2 -g
1716
RUN rm -rf ./lib
1817

1918
RUN npm install lerna -g

‎packages/api/src/index.js

Copy file name to clipboardExpand all lines: packages/api/src/index.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,16 @@ const remove = async (req, res) => {
120120
micro.send(res, resp.status, resp.data)
121121
}
122122

123+
const notfound = (req, res) => micro.send(res, 200, new Date())
124+
123125
const APIs = [
124126
post('/auth', auth),
125127
get('/:model/:id', getOne),
126128
get('/:model/', getMany),
127129
post('/:model', create),
128130
put('/:model/:id', update),
129-
del('/:model/:id', remove)
131+
del('/:model/:id', remove),
132+
get('/*', notfound)
130133
]
131134

132135
const server = micro(router(...APIs))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.