mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Merge pull request #31 from ohtuprojekti-ilmo/topic-date
Removed admincheck from topic dates get-request
This commit is contained in:
@@ -17,7 +17,7 @@ topicDatesRouter.post('/', checkAdmin, (req, res) => {
|
||||
})
|
||||
|
||||
//fetches latest entry
|
||||
topicDatesRouter.get('/', checkAdmin, (req, res) => {
|
||||
topicDatesRouter.get('/', (req, res) => {
|
||||
db.TopicDate.findAll({
|
||||
limit: 1,
|
||||
order: [['createdAt', 'DESC']]
|
||||
|
||||
Reference in New Issue
Block a user