File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,14 @@ app.use(cookieParser());
38
38
39
39
// statically serve everything in build folder
40
40
app . use ( '/' , express . static ( path . resolve ( __dirname , '../build' ) ) ) ;
41
+ // statically serve images
41
42
app . use (
42
43
'/images' ,
43
44
express . static ( path . resolve ( __dirname , '..src/public/images' ) )
44
45
) ;
45
46
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
46
49
app . get ( '/' , ( req , res ) => {
47
50
res . status ( 200 ) . sendFile ( path . resolve ( __dirname , '../build/index.html' ) ) ;
48
51
} ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const App = (): JSX.Element => {
24
24
// getProjects returns a promise which is thenable
25
25
getProjects ( ) . then ( project => {
26
26
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
28
28
dispatch ( {
29
29
type : 'SET INITIAL STATE' ,
30
30
payload : project
You can’t perform that action at this time.
0 commit comments