- Set Cache-Control: no-store in the response header for oauth endpoints
- Sort EditorPicksSection by updated_at field in controllers/index_page.go
- PR#102
- Use userID, email and standard claims to generate JWT.
- Code refactors. Fix typo, add error check.
- Still redirect to destination even if oauth fails.
- New endpoint "/v1/token/:userID", which is used to renew JWT for clients.
- Set Cache-Control: no-store for those endpoints related to users
Major Change
- Drop password and signup process, only send activation email every time user want to sign in.
- Dedup the clients accounts. Connect the client who signs in by oauth or by email to the existed record.
- Move oauth controllers from subfolders to root controllers folder.
- controllers/oauth/goolge/google.go -> controllers/google-oauth.go
- controllers/oauth/facebook/facebook.go -> controllers/goog-oauth.go
- Update controller/google-oauth.go. Set jwt in the cookies
- Update middlewares/jwt.go. Add SetEmailClaim function.
- Update membership_user.sql
- Change email content wording and styling
- Add GinResponseWrapper function, which deliver the response to the client
- Update controllers/account.go
- code refactor since the return value of each function is wrapped by GinReponseWrapper
- Function test refactor
- Bug fix. Output
html
field in ContentBody.
- Embed Theme field in post model
- Make activation email more stylish
- Fetch sections asynchronously for index_page controller
- Sort returned bookmarks of a user by
updated_at
inusers_bookmarks
table
- Sort relateds according to the order set by editors
- Add job title of authors
- Check JWT expiration time
- Allow DELETE method and Authorization Header
- Add endpoint /users/:userID/bookmarks/:bookmarkSlug to get a bookmark of a user
- Refine create/delete/get bookmark
- Update models/post.go. Add LeadingImageDescription field
- Fetch posts without is_feature: true in photos_section
- Update Bookmark model. Replace Href by Slug, Style and External.
- Bug fix. Order authors
- Bug Fix. Only add Cache-Control in the Response Header when Request Header contains Origin directive'
- Hot Fix. Add hard coded Access-Control-Allow-Origin in response header
- Upgrade github.com/gin-contrib/cors to the latest commit to fix the cors problem
- Set Access-Control-Allow-Origin: https://www.twreporter.org
- Add Access-Control-Allow-Origin in response header
- Fix Typo.
- Bug fix. Avoid fetching all the records if ids is an empty array instead of nil value
- Allow any request in development environment
- Update categories
- Return leading_image_portrait field in post model.
- Add AmazonSES service to send mails.
- Integrate with circleci.
- Add Cache-Control in response header and simply cors setting
- Add CORS in response header for production environment
- Only allow to query
published
posts and topics in production environment
- Fix typo. Agolia to Algolia.
- initialization