Skip to content

Commit

Permalink
add backup mock endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 committed Jul 26, 2023
1 parent d1142cc commit 4fd0c5a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
- Try using WebTestClient https://docs.spring.io/spring-framework/reference/testing/webtestclient.html#webtestclient-json
- Add pgAdmin to dev container https://www.pgadmin.org/download/pgadmin-4-container/s
- add p0 deployment as manual action step
- create backup service in
- create backup service in UI
- create test which deletes authorized client and returns auth url on error during renewval of access token
- populate db with some data for local
- create weight graph
- create weight endpoints which retuns weight in last day, week, month, year
- fix pgexporter logs about missing role
- return raw date for last backup so the UI can decide if it's ok or not
2 changes: 1 addition & 1 deletion client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"development": {
"browserTarget": "client:build:development",
"proxyConfig": "src/proxy.conf.json",
"proxyConfig": "src/proxy.conf.mjs",
"port": 3000
}
},
Expand Down
7 changes: 0 additions & 7 deletions client/src/proxy.conf.json

This file was deleted.

12 changes: 12 additions & 0 deletions client/src/proxy.conf.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
"/api": {
target: "http://localhost:8080",
secure: false,
changeOrigin: true,
},
"/db/last-backup-time": {
bypass: function (req, res) {
res.send("2 hours ago");
},
},
};

0 comments on commit 4fd0c5a

Please sign in to comment.