1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-11 14:49:56 +02:00

Fixed #811, closes #810

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2017-01-10 08:45:44 -08:00
parent 63262b2311
commit ea1c7c5ba7
10 changed files with 11 additions and 11 deletions

4
.gitattributes vendored
View File

@ -14,7 +14,7 @@
*.json text eol=lf
LICENSE text eol=lf
# Exclude `website` and `recipes` from Github's language statistics
# Exclude `website` and `examples` from GitHub's language statistics
# https://github.com/github/linguist#using-gitattributes
recipes/* linguist-documentation
examples/* linguist-documentation
website/* linguist-documentation

View File

@ -39,7 +39,7 @@
- PR should have:
- Test case
- Documentation
- Recipe (If it makes sense)
- Example (If it makes sense)
- You can also contribute by:
- Reporting issues
- Suggesting new features or enhancements

View File

@ -5,7 +5,7 @@ import (
"strconv"
"github.com/labstack/echo"
"github.com/labstack/echo/recipe/twitter/model"
"github.com/labstack/echo/examples/twitter/model"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

View File

@ -6,7 +6,7 @@ import (
jwt "github.com/dgrijalva/jwt-go"
"github.com/labstack/echo"
"github.com/labstack/echo/recipe/twitter/model"
"github.com/labstack/echo/examples/twitter/model"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)

View File

@ -2,8 +2,8 @@ package main
import (
"github.com/labstack/echo"
"github.com/labstack/echo/examples/twitter/handler"
"github.com/labstack/echo/middleware"
"github.com/labstack/echo/recipe/twitter/handler"
"github.com/labstack/gommon/log"
mgo "gopkg.in/mgo.v2"
)

View File

@ -7,7 +7,7 @@ description = "Automatic TLS certificates from Let's Encrypt example for Echo"
weight = 2
+++
This recipe shows how to obtain TLS certificates for a domain automatically from
This example shows how to obtain TLS certificates for a domain automatically from
Let's Encrypt. `Echo#StartAutoTLS` accepts an address which should listen on port `443`.
Browse to `https://<DOMAIN>`. If everything goes fine, you should see a welcome

View File

@ -127,7 +127,7 @@ And of course we can deploy our app to both of these platforms for easy and inex
Depending on what your app actually does it's possible you may need to make other changes to allow
switching between AppEngine provided service such as Datastore and alternative storage implementations
such as MongoDB. A combination of go interfaces and build constraints can make this fairly straightforward
but is outside the scope of this recipe.
but is outside the scope of this example.
## [Source Code]({{< source "google-app-engine" >}})

View File

@ -3,7 +3,7 @@ title = "JWT Example"
description = "JWT example for Echo"
[menu.main]
name = "JWT"
identifier = "recipe-jwt"
identifier = "example-jwt"
parent = "examples"
weight = 11
+++

View File

@ -7,7 +7,7 @@ description = "Twitter Like API example for Echo"
weight = 2
+++
This recipe shows how to create a Twitter like REST API using MongoDB (Database),
This example shows how to create a Twitter like REST API using MongoDB (Database),
JWT (API security) and JSON (Data exchange).
## Models

View File

@ -80,4 +80,4 @@ DefaultJWTConfig = JWTConfig{
}
```
## [Recipe]({{< ref "examples/jwt.md">}})
## [Example]({{< ref "examples/jwt.md">}})