Skip to content

Commit 733cfe9

Browse files
authored
Merge pull request #78 from aquariophilie/client-integration
Client integration
2 parents 1e04e6c + 5457989 commit 733cfe9

File tree

11 files changed

+2743
-212
lines changed

11 files changed

+2743
-212
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ COPY . .
2727
RUN npm run build:server
2828
# RUN ls -la
2929
# RUN ls -laR dist/
30-
CMD ["node", "dist/app.js"]
30+
CMD ["npm", "run", "serve:prod"]
3131
# -----------------------------------------------------------------
3232
#
3333
# EOF

client/src/lib/requests.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import axios from 'axios'
2+
3+
const apiPath = '/api/author'
4+
5+
function getAuthors () {
6+
axios.get(`${apiPath}`)
7+
.then((res) => {
8+
return (res.data)
9+
})
10+
}
11+
12+
export default {
13+
getAuthors
14+
}

client/src/routes/api/authors/[slug].js

Lines changed: 0 additions & 34 deletions
This file was deleted.

client/src/routes/api/authors/index.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

client/src/routes/api/books/[slug].js

Lines changed: 0 additions & 35 deletions
This file was deleted.

client/src/routes/api/books/index.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)