mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
Update to Version 8.4.2 | Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md#fr-15-september-2017--v842 Former-commit-id: 0ee4cc1d93ef7f26e5d402fdfbe07062aff5b08c
This commit is contained in:
@@ -98,6 +98,11 @@ func main() {
|
||||
// GET: http://any_thing_here.localhost:8080
|
||||
dynamicSubdomainRoutes.Get("/", info)
|
||||
|
||||
app.Delete("/something", func(ctx iris.Context) {
|
||||
name := ctx.URLParam("name")
|
||||
ctx.Writef(name)
|
||||
})
|
||||
|
||||
// GET: http://localhost:8080/
|
||||
// GET: http://localhost:8080/profile/anyusername
|
||||
// GET: http://localhost:8080/profile/anyusername/backups/any/number/of/paths/here
|
||||
@@ -108,13 +113,12 @@ func main() {
|
||||
// POST: http://localhost:8080/users
|
||||
// PUT: http://localhost:8080/users
|
||||
// DELETE: http://localhost:8080/users/42
|
||||
// DELETE: http://localhost:8080/something?name=iris
|
||||
|
||||
// GET: http://admin.localhost:8080
|
||||
// GET: http://admin.localhost:8080/settings
|
||||
// GET: http://any_thing_here.localhost:8080
|
||||
if err := app.Run(iris.Addr(":8080")); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
app.Run(iris.Addr(":8080"))
|
||||
}
|
||||
|
||||
func info(ctx iris.Context) {
|
||||
|
||||
BIN
_examples/routing/overview/public/images/favicon.ico
Normal file
BIN
_examples/routing/overview/public/images/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user