This commit is contained in:
tanner0101 2018-04-19 22:30:08 -04:00
parent 0e23212b7c
commit 8b6b16a7b6
2 changed files with 3 additions and 3 deletions

View File

@ -1925,7 +1925,7 @@
<p>This package is included with Vapor and exported by default. You will have access to all <code>Routing</code> APIs when you import <code>Vapor</code>.</p>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>If you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See [Vapor &rarr; Routing] for more information.</p>
<p>If you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See <a href="../vapor/routing.md">Vapor &rarr; Routing</a> for more information.</p>
</div>
<div class="codehilite"><pre><span></span><span class="kd">import</span> <span class="nc">Vapor</span>
</pre></div>

View File

@ -1942,7 +1942,7 @@
},
{
"location": "/routing/getting-started/",
"text": "Getting Started with Routing\n\n\nRouting (\nvapor/routing\n) is a small framework for routing things like HTTP requests. It lets you register and lookup routes in a router using nested, dynamic path components.\n\n\nFor example, the routing package can help you route a request like the following and collect the values of the dynamic components.\n\n\n/users/:user_id/comments/:comment_id\n\n\n\n\n\nVapor\n\n\nThis package is included with Vapor and exported by default. You will have access to all \nRouting\n APIs when you import \nVapor\n.\n\n\n\n\nTip\n\n\nIf you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See [Vapor \n Routing] for more information.\n\n\n\n\nimport\n \nVapor\n\n\n\n\n\n\nStandalone\n\n\nThe Routing package is lightweight, pure-Swift, and has very few dependencies. This means it can be used as a routing framework for any Swift project\neven one not using Vapor.\n\n\nTo include it in your package, add the following to your \nPackage.swift\n file.\n\n\n// swift-tools-version:4.0\n\n\nimport\n \nPackageDescription\n\n\n\nlet\n \npackage\n \n=\n \nPackage\n(\n\n \nname\n:\n \nProject\n,\n\n \ndependencies\n:\n \n[\n\n \n...\n\n \n.\npackage\n(\nurl\n:\n \nhttps://github.com/vapor/routing.git\n,\n \nfrom\n:\n \n3.0.0\n),\n\n \n],\n\n \ntargets\n:\n \n[\n\n \n.\ntarget\n(\nname\n:\n \nProject\n,\n \ndependencies\n:\n \n[\nRouting\n,\n \n...\n \n])\n\n \n]\n\n\n)\n\n\n\n\n\n\nUse \nimport Routing\n to access the APIs.\n\n\n\n\nWarning\n\n\nSome of this guide may contain Vapor-specific APIs, however most of it should be applicable to the Routing package in general.\nVisit the \nAPI Docs\n for Routing-specific API info.",
"text": "Getting Started with Routing\n\n\nRouting (\nvapor/routing\n) is a small framework for routing things like HTTP requests. It lets you register and lookup routes in a router using nested, dynamic path components.\n\n\nFor example, the routing package can help you route a request like the following and collect the values of the dynamic components.\n\n\n/users/:user_id/comments/:comment_id\n\n\n\n\n\nVapor\n\n\nThis package is included with Vapor and exported by default. You will have access to all \nRouting\n APIs when you import \nVapor\n.\n\n\n\n\nTip\n\n\nIf you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See \nVapor \n Routing\n for more information.\n\n\n\n\nimport\n \nVapor\n\n\n\n\n\n\nStandalone\n\n\nThe Routing package is lightweight, pure-Swift, and has very few dependencies. This means it can be used as a routing framework for any Swift project\neven one not using Vapor.\n\n\nTo include it in your package, add the following to your \nPackage.swift\n file.\n\n\n// swift-tools-version:4.0\n\n\nimport\n \nPackageDescription\n\n\n\nlet\n \npackage\n \n=\n \nPackage\n(\n\n \nname\n:\n \nProject\n,\n\n \ndependencies\n:\n \n[\n\n \n...\n\n \n.\npackage\n(\nurl\n:\n \nhttps://github.com/vapor/routing.git\n,\n \nfrom\n:\n \n3.0.0\n),\n\n \n],\n\n \ntargets\n:\n \n[\n\n \n.\ntarget\n(\nname\n:\n \nProject\n,\n \ndependencies\n:\n \n[\nRouting\n,\n \n...\n \n])\n\n \n]\n\n\n)\n\n\n\n\n\n\nUse \nimport Routing\n to access the APIs.\n\n\n\n\nWarning\n\n\nSome of this guide may contain Vapor-specific APIs, however most of it should be applicable to the Routing package in general.\nVisit the \nAPI Docs\n for Routing-specific API info.",
"title": "Getting Started"
},
{
@ -1952,7 +1952,7 @@
},
{
"location": "/routing/getting-started/#vapor",
"text": "This package is included with Vapor and exported by default. You will have access to all Routing APIs when you import Vapor . Tip If you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See [Vapor Routing] for more information. import Vapor",
"text": "This package is included with Vapor and exported by default. You will have access to all Routing APIs when you import Vapor . Tip If you use Vapor, most of Routing's APIs will be wrapped by more convenient methods. See Vapor Routing for more information. import Vapor",
"title": "Vapor"
},
{