summaryrefslogtreecommitdiff
path: root/app/frontend/url/config.xml
blob: 1400a1c2ddd20d3a5dded466844e0c2acaf3cf06 (plain)
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
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <modules>
    <module id="url"
            class="Application.url.UrlManager"
            UrlPrefix="/"
            EnableCustomUrl="True">

      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           pattern="{month}/{year}/"
           parameters.month="\d{2}"
           parameters.year="\d{4}" />
      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           pattern="{month}/"
           parameters.month="\d{2}" />
      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           EnableCustomUrl="false"
           pattern="" />

      <url ServiceParameter="Calendar"
           UrlFormat="HiddenPath"
           pattern="calendar/{calendar}/"
           parameters.calendar=".*" />

      <url ServiceParameter="Activate"
           UrlFormat="HiddenPath"
           pattern="activate/{email}/{hash}/"
           parameters.email="(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?"
           parameters.hash="[a-f0-9]{32}" />

      <url ServiceParameter="Signup"
           UrlFormat="HiddenPath"
           pattern="signup/{success}/"
           parameters.success="success" />

      <url ServiceParameter="*"
           UrlFormat="HiddenPath"
           EnableCustomUrl="false"
           pattern="{*}" />
    </module>

    <module id="request"
            class="THttpRequest"
            UrlFormat="HiddenPath"
            UrlParamSeparator="/"
            UrlManager="url" />
    <module id="response"
            class="THttpResponse"
            CacheControl="public"
            CacheExpire="10" />
  </modules>
</configuration>