Barış Soner Uşaklı
951e71a0e5
fix : #9567 fix tests
4 years ago
Barış Soner Uşaklı
5215c30ade
fix : #9567 , use regular 404
4 years ago
Barış Soner Uşaklı
1db8920b18
refactor: make debug handler async
4 years ago
Barış Soner Uşaklı
2ea468daa3
test: clear cache between runs, require middleware later in helpers
4 years ago
psychobunny
a9978fcfd2
feat: rate limit file uploads
4 years ago
Julian Lam
9c52fd2e74
fix : #9450 express session saved even if saveUninitialized explicitly passed in
4 years ago
psychobunny
9e1f72a435
feat: optional urlMethod param for loginStrategies
4 years ago
gasoved
077330b764
feat: scheduled topics ( #9399 )
...
* feat: scheduled topics
* refactor: linting fixes
* fix: tests
* fix(test): race condition
* fix: make a single request
4 years ago
Barış Soner Uşaklı
d00268c9b8
refactor: style, no need to convert length to string
4 years ago
Julian Lam
cc489708ee
fix : #9378 , crash on verifyToken if API Token settings not saved (null case error)
4 years ago
Julian Lam
4b5450853d
feat: allow missing (or non-array) middlewares argument in route helper methods
4 years ago
Julian Lam
e3b2c00db1
fix: request authentication called twice in account routes
4 years ago
Julian Lam
7da061f0d7
refactor: automatically authenticate all requests setup through route helpers ( #9357 )
...
* refactor: automatically authenticate all requests setup through route helpers
* fix: removed connect-ensure-login dependency
* fix: bug with some middlewares not defined outside route helper methods
4 years ago
Julian Lam
c1b3079d93
feat: category privilege API routes
...
closes #9342
4 years ago
Julian Lam
984c9dd915
fix: in setupPageRoute helper, buildHeader after plugin hooks have fired
...
To allow for a plugin to call doLogin and have it properly reflect in the header
4 years ago
Julian Lam
f561799f74
refactor: abstract out some client side dashboard code into modules, analytics subpages for users, topics, and logins
4 years ago
Julian Lam
7223074f1d
feat: ability to re-order topic thumbnails
4 years ago
Julian Lam
9d17f397c0
fix(remountable-routes): more fixes to remountable routes
...
fix: ensure proper admin privilege checking on remounted `/admin` mount
fix: guard against plugins sending back missing mounts
fix: no need to make addRemountableRoutes awaitable
4 years ago
Julian Lam
16c1d6e937
style(remountable-routes): abstract removable routes code to a separate local fn
4 years ago
Julian Lam
1f28713f1a
refactor(remountable-routes): rename `src/routes/accounts.js` to `src/routes/user.js` to better match the route prefix
4 years ago
Julian Lam
bc68e990af
fix(remountable-routes): bug with user routes remounting to itself
4 years ago
Julian Lam
9021f071d4
feat(remountable-routes): allow category and account routes to be remounted
4 years ago
Julian Lam
f01af62b53
feat(remountable-routes): allow /admin and /post to be remountable
4 years ago
Julian Lam
92758ec50d
refactor(remountable-routes): allow certain route prefixes to be mounted elsewhere
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Peter Jaszkowiak
115d19e289
chore: eslint prefer-rest-params, prefer-spread
4 years ago
Peter Jaszkowiak
23f212a4c0
chore: eslint prefer-destructuring
4 years ago
Peter Jaszkowiak
dab3b23575
chore: eslint no-var, vars-on-top
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Peter Jaszkowiak
4ee0f1459d
chore: eslint import/newline-after-import
4 years ago
Barış Soner Uşaklı
fca17cb713
fix: move service worker back to relative_path/service-worker.js
4 years ago
gasoved
eb642f40b9
feat: #9109 , ability to delete a post's diffs
4 years ago
Opliko
2bc74cffe6
fix : #9127 , scope service worker to relative_path for the forum ( #9239 )
...
Adds a `Service-Worker-Allowed` header on `assets/src/service-worker.js` URL and uses `scope` option during registration to ensure the service worker is correctly scoped to the entire forum and only the forum.
4 years ago
Barış Soner Uşaklı
647d3ba810
fix: removed methods
4 years ago
Julian Lam
2ad0d0d0d8
chore: remove deprecated getObject routes [breaking]
...
`/api/post/pid/:pid`, `/api/topic/tid/:tid`, `/api/category/cid/:cid` have now been removed in favour of routes in the Write API (`/api/v3/(posts|topics|categories)/:id`)
4 years ago
Julian Lam
dc84559d0b
feat(topic-events): topic events GET route in write API
4 years ago
Julian Lam
966c4117ec
refactor(api): post move to write API
4 years ago
Julian Lam
e118e59ce0
refactor(api): post diffs to use write API
4 years ago
Julian Lam
ab11435ed5
feat: grant plugins the ability to specify options to the SSO handler
...
... to be handled in the plugin itself (overriding the passport prototype's authorizationParams method)
+ new hook filter:auth.options
4 years ago
Julian Lam
9b289eca9d
fix: ssoState passed to strategies even if not called for
4 years ago
Julian Lam
77ab46686d
fix: access checks for tags and thumbs get route
4 years ago
Julian Lam
56f929ed4f
feat: add write API route for checking login credentials
4 years ago
Julian Lam
edb8da1ef9
feat(api): closes #9123 category and topic routes migrated to Write API
4 years ago
Julian Lam
cdff8d286a
chore(api): add deprecation notices re: #9123
4 years ago
Julian Lam
e267f29584
feat(api): #9123 , migrate /api/post/pid/:pid to Write API
4 years ago
Julian Lam
32e36f7b2e
feat(api): group ownership API route, switch client-side to use API route
4 years ago
Julian Lam
1cd2689cf6
refactor(api): deprecated groups update socket in favour of API lib
4 years ago
Julian Lam
878ee06715
refactor: schema backreference test to use map instead of reduce, properly check write-api routes
4 years ago
Julian Lam
3e54b70c06
fix : #9092 , Topic thumbnails do not work with third-party uploaders
4 years ago