Commit Graph

13 Commits (b6493f896fe825a84e6d1373d0351d5430cddf6c)

Author SHA1 Message Date
Barış Soner Uşaklı b6493f896f fix: tests, only generate csrf_token on 404 gets
Barış Soner Uşaklı 94f72d6093 fix: , generate csrf_token on 404
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template
Julian Lam 6e2da9966e refactor: move plugin hook methods to plugin.hooks.*
Julian Lam 9f3b78118a fix: send hard 404 instead of soft 404 for missing modules
We used to send a soft 404 because require.js would error out on
a 404, but it seems years ago, error handling was added to the
require() call, so a hard 404 will not throw errors to the console
Barış Soner Uşaklı 842b8abb84
feat: add buildHeaderAsync ()
* feat: add buildHeaderAsync

make helphers.notAllowed async

* fix: remove csrf from buildHeader

* fix: remove unused method, use middleware

* fix: /post/pid redirect doesn't need buildHeader

use buildHeaderAsync
Barış Soner Uşaklı ec3b5dd95a refactor: async/await routes/feeds
Julian Lam 831d079512 fix: incorrect handling of client script 404s
Baris Usakli 0d409610c4 fix:
Barış Soner Uşaklı ae0fe5e880 feat: more naming
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
Barış Soner Uşaklı a4ba88dc60 more feed tests
barisusakli bc8d297377 move out error and 404 controllers