chore: Auto reload frontend of client is out of date (#1270)

* Move editor version to header
Add editor version check for API endpoints

* fix: Editor update auto-reload
Bump RME

* fix: Only redirect if editor header exists

* lint
This commit is contained in:
Tom Moor
2020-05-16 14:05:51 -07:00
committed by GitHub
parent 82749ffbd8
commit e0b33ee576
6 changed files with 36 additions and 5 deletions

View File

@ -25,6 +25,7 @@ import validation from '../middlewares/validation';
import methodOverride from '../middlewares/methodOverride';
import cache from './middlewares/cache';
import apiWrapper from './middlewares/apiWrapper';
import editor from './middlewares/editor';
const api = new Koa();
const router = new Router();
@ -36,6 +37,7 @@ api.use(methodOverride());
api.use(cache());
api.use(validation());
api.use(apiWrapper());
api.use(editor());
// routes
router.use('/', auth.routes());