mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 23:40:35 +01:00
add the Run part on the subdomains example code
parent
3e11e9e37b
commit
806ad5e7aa
|
@ -41,6 +41,10 @@ admin.Get("/", func(ctx iris.Context) {
|
||||||
admin.Get("/hey", func(ctx iris.Context) {
|
admin.Get("/hey", func(ctx iris.Context) {
|
||||||
ctx.Writef("HEY FROM admin.mydomain.com/hey")
|
ctx.Writef("HEY FROM admin.mydomain.com/hey")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// [other routes here...]
|
||||||
|
|
||||||
|
app.Run(iris.Addr("mydomain.com:80"))
|
||||||
```
|
```
|
||||||
|
|
||||||
For local development you'll have to edit your hosts, for example in windows operating system open the `C:\Windows\System32\Drivers\etc\hosts` file and append:
|
For local development you'll have to edit your hosts, for example in windows operating system open the `C:\Windows\System32\Drivers\etc\hosts` file and append:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user