Skip to content

Commit 2d7cf7c

Browse files
committed
minor changes before master merge
1 parent 0e09ca1 commit 2d7cf7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

server/server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ app.use(cookieParser());
3838

3939
// statically serve everything in build folder
4040
app.use('/', express.static(path.resolve(__dirname, '../build')));
41+
// statically serve images
4142
app.use(
4243
'/images',
4344
express.static(path.resolve(__dirname, '..src/public/images'))
4445
);
4546

47+
// serves main app, we are going to serve main app to electron locally, this will be deprecated
48+
// this backend server will only be used for authentication and project management services
4649
app.get('/', (req, res) => {
4750
res.status(200).sendFile(path.resolve(__dirname, '../build/index.html'));
4851
});

src/components/AppNew.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const App = (): JSX.Element => {
2424
// getProjects returns a promise which is thenable
2525
getProjects().then(project => {
2626
if (project) {
27-
// if user has projects we run a dispatch to update state with received project
27+
// if user has project we run a dispatch to update state with received project
2828
dispatch({
2929
type: 'SET INITIAL STATE',
3030
payload: project

0 commit comments

Comments
 (0)