mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +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) {
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user