sbkwgh
|
019c6cc99c
Fix problem with associations and add test to check for this
|
8 gadi atpakaļ |
sbkwgh
|
9f0a0ae991
Add and implement tests for DELETE route
|
8 gadi atpakaļ |
sbkwgh
|
51a31918ca
Move post id error to class method on model
|
8 gadi atpakaļ |
sbkwgh
|
21068b039e
Fix test, implement tests for report routes
|
8 gadi atpakaļ |
sbkwgh
|
61ba7f0f50
Add route 'guards' for admin/user account, fix test callbacks
|
8 gadi atpakaļ |
sbkwgh
|
70361199b5
Add model and scaffolding for route
|
8 gadi atpakaļ |
sbkwgh
|
c7f5699af8
Add tests for report
|
8 gadi atpakaļ |
sbkwgh
|
a54fa9fa0e
Use sequelize validation for category model and routes
|
8 gadi atpakaļ |
sbkwgh
|
b9b140006e
Use Sequelize validation
|
8 gadi atpakaļ |
sbkwgh
|
bd84d63a16
Use more succint error syntax
|
8 gadi atpakaļ |
sbkwgh
|
711963f3c0
Use correct validation
|
8 gadi atpakaļ |
sbkwgh
|
a307c32c89
Move post meta info to instance method
|
8 gadi atpakaļ |
sbkwgh
|
81dce1a6e7
Remove superfluous async/await keywords
|
8 gadi atpakaļ |
sbkwgh
|
c38aad3a50
Refactor delete and login routes
|
8 gadi atpakaļ |
sbkwgh
|
5dca35c9e1
Refactor password and description update - n.b. hacky fix so that hook being called twice does not re-hash the hash
|
8 gadi atpakaļ |
sbkwgh
|
f61691437c
Mostly refactor post user route
|
8 gadi atpakaļ |
sbkwgh
|
656f76859b
Use sequelize validations rather than custom ones in router function
|
8 gadi atpakaļ |
sbkwgh
|
2b464acc37
Use instance field this.Posts instead of passing in posts
|
8 gadi atpakaļ |
sbkwgh
|
53bfc3e1bd
Move thread meta data logic to instance method
|
8 gadi atpakaļ |
sbkwgh
|
06000b269d
User specific agent which is non-admin
|
8 gadi atpakaļ |
sbkwgh
|
40f9883401
Merge branch 'lock-thread'
|
8 gadi atpakaļ |
sbkwgh
|
4e73d4b9ea
Move PUT route below admin route middle-ware so that only admin users can lock threads
|
8 gadi atpakaļ |
sbkwgh
|
b9313f6547
Fix test where it was not correctly tested if non-admin user could lock threads (admin privillege)
|
8 gadi atpakaļ |
sbkwgh
|
80864d208f
Implement test, returning an error if trying to reply to removed post
|
8 gadi atpakaļ |
sbkwgh
|
37b9450206
Add test to return error if trying to reply to a removed post
|
8 gadi atpakaļ |
sbkwgh
|
4ff67cba08
Add postRemoved error
|
8 gadi atpakaļ |
sbkwgh
|
f556978dd1
Implement remove post functionality
|
8 gadi atpakaļ |
sbkwgh
|
d8ded4cfbc
Expect a specific string on a removed post, rather than ust null
|
8 gadi atpakaļ |
sbkwgh
|
f10ce41912
Remove test for User field being null - as the username that a post is replying to is set manually, this would require manually updating this association, so is currently not implemented
|
8 gadi atpakaļ |
sbkwgh
|
36485d4523
Add tests for DELETE /post/:id route
|
8 gadi atpakaļ |