Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 105 lines (86 sloc) 2.625 kB
1885f87 Further licence coverage. Apply null check to grailsApplication.
acampbell3000 authored
1
2 /**
3 * Copyright 2010 Anthony Campbell (anthonycampbell.co.uk)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
1769470 Add example UrlMappings
acampbell3000 authored
18 class UrlMappings {
19 static mappings = {
20 "/$controller/$action?/$id?"{
21 constraints {
22 // apply constraints here
23 }
24 }
25
3cab8b9 Pagination float fix. Introduction of RSS feed for album listsing.
acampbell3000 authored
26 "/album/list/feed/$feed" {
27 controller = "album"
28 action = "list"
29 }
30
1769470 Add example UrlMappings
acampbell3000 authored
31 "/photo/list/$albumId" {
32 controller = "photo"
33 action = "list"
34 }
35
9a51010 Version update. Bug fixes and improvements. Comment pagination. Confi…
acampbell3000 authored
36 "/photo/list/$albumId/feed/$feed" {
37 controller = "photo"
38 action = "list"
39 }
40
1769470 Add example UrlMappings
acampbell3000 authored
41 "/photo/ajaxList/$albumId" {
42 controller = "photo"
43 action = "ajaxList"
44 }
45
9a51010 Version update. Bug fixes and improvements. Comment pagination. Confi…
acampbell3000 authored
46 "/photo/ajaxList/$albumId/feed/$feed" {
47 controller = "photo"
48 action = "ajaxList"
49 }
50
1769470 Add example UrlMappings
acampbell3000 authored
51 "/photo/show/$albumId/$photoId" {
52 controller = "photo"
53 action = "show"
54 }
55
56 "/photo/ajaxShow/$albumId/$photoId" {
57 controller = "photo"
58 action = "ajaxShow"
59 }
60
0a7d032 URL mappings update to include tag feeds.
acampbell3000 authored
61 "/tag/show/$id/feed/$feed" {
62 controller = "tag"
63 action = "show"
64 }
65
7754717 Further tag listing feed work.
acampbell3000 authored
66 "/tag/list/feed/$feed" {
67 controller = "tag"
68 action = "list"
69 }
70
5162317 Major update. Introduction of post commenting through OAuth plugin. F…
acampbell3000 authored
71 "/comment/list/$albumId/$photoId" {
72 controller = "comment"
73 action = "list"
74 }
75
76 "/comment/ajaxList/$albumId/$photoId" {
77 controller = "comment"
78 action = "ajaxList"
79 }
80
81 "/comment/list/$albumId/$photoId/feed/$feed" {
82 controller = "comment"
83 action = "list"
84 }
85
86 "/comment/ajaxList/$albumId/$photoId/feed/$feed" {
87 controller = "comment"
88 action = "ajaxList"
89 }
90
8c4f275 URL mappings update to provide feeds for comment listing.
acampbell3000 authored
91 "/comment/list/feed/$feed" {
92 controller = "comment"
93 action = "list"
94 }
95
96 "/comment/ajaxList/feed/$feed" {
97 controller = "comment"
98 action = "ajaxList"
99 }
100
1769470 Add example UrlMappings
acampbell3000 authored
101 "/"(view:"/index")
102 "500"(view:"/error")
103 }
104 }
Something went wrong with that request. Please try again.