- api from server
This commit is contained in:
1 parent
96daac15ba
commit
44724132c0
1 file changed
+2
-2
+2
-2
@@ -11,7 +11,7 @@ import bodyParser from 'koa-bodyparser';
|
||||
import config from './config';
|
||||
import {redirectionTable} from './config';
|
||||
import {routes, queryObject} from './routes';
|
||||
import api from './routes/api';
|
||||
// import api from './routes/api';
|
||||
import {redirect} from './routes/redirect';
|
||||
|
||||
const dirPublic = path.join(__dirname, '../public');
|
||||
@@ -23,7 +23,7 @@ export function server(){
|
||||
|
||||
app.use(bodyParser());
|
||||
app.use(logger());
|
||||
api(app);
|
||||
// api(app);
|
||||
app.use(conditional());
|
||||
app.use(etag());
|
||||
app.use(prerenderRmFragment());
|
||||
|
||||
Reference in new issue
Block a user