forked from googlearchive/more-routing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.html
34 lines (30 loc) · 1.34 KB
/
routes.html
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
<!--
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="../more-routing-config.html">
<link rel="import" href="../more-route.html">
<!--
The first thing any document using more-routing must do is configure the driver.
more-routing supports path (`/foo/bar`) and hash (`#!/foo/bar`) style routes.
-->
<more-routing-config driver="hash"></more-routing-config>
<!--
You can name routes.
It is strongly recommended that you declare all your named routes in an import
such as this, as it acts as a reference for your application, and makes nesting
more clear.
-->
<more-route name="root" path="/"></more-route>
<more-route name="forum" path="/forum/:forumId">
<!--
Named routes can also be nested. The following route maps to
`/forum/:forumId/:threadId`.
-->
<more-route name="thread" path="/:threadId"></more-route>
</more-route>
<more-route name="user" path="/user/:userId"></more-route>