Repository navigation
Expand file tree
/
Copy pathroutes
More file actions
45 lines (37 loc) · 1.85 KB
/
Copy pathroutes
File metadata and controls
45 lines (37 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
module:testrunner
module:jobs
GET / Application.Index
# Ignore favicon requests
GET /favicon.ico 404
GET /:hue/favicon.png Application.Favicon
# Map static resources from the /app/public folder to the /public path
GET /public/*filepath Static.Serve("public")
GET /admin Admin.Index
# Product pages
GET /products Products.Index
POST /products Products.Create
GET /products/:id Products.Show
POST /products/:id Products.Update
POST /products/:id/delete Products.Delete
# Product admin pages
GET /admin/products Products.AdminIndex
GET /admin/products/new Products.AdminNew
GET /admin/products/:id Products.AdminShow
GET /admin/products/:id/edit Products.AdminEdit
# Shop pages
POST /shops Shops.Create
POST /shops/:id Shops.Update
POST /shops/:id/delete Shops.Delete
# Shop admin pages
GET /admin/shops Shops.AdminIndex
GET /admin/shops/new Shops.AdminNew
GET /admin/shops/:id Shops.AdminShow
GET /admin/shops/:id/edit Shops.AdminEdit
# Shop product pages
POST /shop-products ShopProducts.Create
POST /shop-products/:id/delete ShopProducts.Delete
# Shop product admin pages
GET /admin/shop-products/new ShopProducts.AdminNew