Skip to content
Snippets Groups Projects
routes 988 B
Newer Older
# Routes
# This file defines all application routes (Higher priority routes first)
# https://www.playframework.com/documentation/latest/ScalaRouting
# ~~~~

# An example controller showing a sample home page
GET     /                           controllers.HomeController.index()

# Map static resources from the /public folder to the /assets URL path
GET     /assets/*file               controllers.Assets.versioned(path="/public", file: Asset)
GET     /daily/getAll      controllers.DailyController.getAll()
GET     /daily/users       controllers.DailyController.getUserDailies(userId: String)
GET     /feed              controllers.DailyController.getUserFeed(userId: String)
POST     /daily/create      controllers.DailyController.create(userId: String, questionId: String, content: String)
PUT     /daily/like      controllers.DailyController.like(dailyId: String, likerId: String)
PUT     /daily/unlike      controllers.DailyController.unlike(dailyId: String, likerId: String)