Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.

Commit 778e94f

Browse files
committed
refactor: sort imports
1 parent e46d6a2 commit 778e94f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/server/middlewares/apiMiddleware.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// API Middleware
44
//
55

6-
import express from 'express'
7-
import bodyParser from 'body-parser'
86
import * as resources from '../resources'
7+
import bodyParser from 'body-parser'
8+
import express from 'express'
99

1010
const API_URL = '/api/v1'
1111

src/server/middlewares/staticMiddleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Static Middleware
44
//
55

6+
import { DEBUG } from '../../../config/config'
67
import express from 'express'
78
import { publicDir } from '../../../config/paths'
8-
import { DEBUG } from '../../../config/config'
99

1010
const MAX_AGE = DEBUG ? 0 : '1 year'
1111
const staticCache = { maxAge: MAX_AGE, etag: true, lastModified: false }

src/server/middlewares/viewMiddleware.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// View Middleware
44
//
55

6-
import React from 'react'
6+
import { RouterContext, match } from 'react-router'
77
import Html from '../components/Html'
8+
import { Provider } from 'react-redux'
9+
import React from 'react'
810
import configureStore from 'configureStore'
911
import reducers from '../../shared/modules'
10-
import { route as routes } from '../../Application'
11-
import { Provider } from 'react-redux'
12-
import { RouterContext, match } from 'react-router'
1312
import { renderToString } from 'react-dom/server'
13+
import { route as routes } from '../../Application'
1414

1515
export default (app) => {
1616
// match everything else

0 commit comments

Comments
 (0)