-
Notifications
You must be signed in to change notification settings - Fork 27
/
routes
18 lines (15 loc) · 969 Bytes
/
routes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET / controllers.Application.index
GET /posts controllers.Default.redirect(to="/posts/")
GET /posts/ controllers.PostsController.index
GET /posts/new controllers.PostsController.add.show
POST /posts/:id/add controllers.PostsController.add.submit(id: PostId)
GET /posts/:id/edit controllers.PostsController.edit.show(id: PostId)
POST /posts/:id/edit controllers.PostsController.edit.submit(id: PostId)
POST /posts/:id/delete controllers.PostsController.delete(id: PostId)
GET /posts/:id controllers.PostsController.show(id: PostId)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)