1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-31 00:37:05 +00:00
Commit Graph

2849 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
65e60df44e revert last commit 2020-08-30 16:19:52 +03:00
Gerasimos (Makis) Maropoulos
6ee69ffd1c minor: fix Context.ViewData ignored when nil is passed as view data on Context.View method 2020-08-30 16:14:32 +03:00
Gerasimos (Makis) Maropoulos
600eb645df minor: examples 2020-08-30 15:26:50 +03:00
Gerasimos (Makis) Maropoulos
a3279b8fa9 add a note on rewrite middleware for local URL modifications 2020-08-29 18:15:22 +03:00
Gerasimos (Makis) Maropoulos
07f07ecf6c New Context.PostValueMany. The PostValues method now returns a second output argument of error too
relative to: #1609
2020-08-29 17:58:16 +03:00
Gerasimos (Makis) Maropoulos
00684f9d2e add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested 2020-08-29 01:21:42 +03:00
Gerasimos (Makis) Maropoulos
6f9a453160 DBUG API: mark overlapped routes, hide the builtin functionality (read description)
also reference the correct file:line on <autogenerated> (by searching for the file,line of method inside the embedded fields themselves, as go automatically generates the methods foreach struct for their embedded fields)

fix UseGlobal may override the overlap feature
2020-08-28 16:02:14 +03:00
Gerasimos (Makis) Maropoulos
0b31b50404 Thanks @sumjoe ❤️ 2020-08-28 08:31:50 +03:00
Gerasimos (Makis) Maropoulos
4035ed308c fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem 2020-08-28 06:21:26 +03:00
Gerasimos (Makis) Maropoulos
a6ec94e1a6 overlap routing: and mvc: allow setting status code from a dependency or a middleware 2020-08-28 04:11:56 +03:00
Gerasimos (Makis) Maropoulos
933534574a fix #1603 2020-08-28 02:22:38 +03:00
Gerasimos (Makis) Maropoulos
39e3911d41 fix future issues like #1607 2020-08-27 07:23:56 +03:00
Gerasimos (Makis) Maropoulos
9c56ed6261 examples: minor: update go mod master version 2020-08-26 19:37:14 +03:00
Gerasimos (Makis) Maropoulos
a46f71804a minor 2020-08-26 07:54:48 +03:00
Gerasimos (Makis) Maropoulos
d44b69faed Add Party.ResetRouterFilters
relative to: https://github.com/kataras/iris/issues/1604#issuecomment-680410131
2020-08-26 06:57:36 +03:00
Gerasimos (Makis) Maropoulos
1780d97d44 update the subdomain redirect example using the rewrite middleware 2020-08-26 00:07:07 +03:00
Gerasimos (Makis) Maropoulos
5e82fa5b89 mvc: struct field and method dependency logs on debug level. Read HISTORY.md
- remove Party.GetReporter

- Read HISTORY.md
2020-08-24 21:44:29 +03:00
Gerasimos (Makis) Maropoulos
ef5685bf7e add Iris + Serverless example link 2020-08-23 17:55:29 +03:00
Gerasimos (Makis) Maropoulos
8e049d77c9 HandleHTTPError MVC Method as requested at #1595. Read HISTORY.md
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
2020-08-22 08:04:22 +03:00
Gerasimos (Makis) Maropoulos
a018ba9b0a add example for #1601 2020-08-22 03:21:44 +03:00
Gerasimos (Makis) Maropoulos
e41e861c4c update examples go mods 2020-08-21 20:53:45 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c ... 2020-08-21 20:48:41 +03:00
Gerasimos (Makis) Maropoulos
95c3c2a951 rewrite middleware: add a feature which supports users.json to users?format=json local route redirection 2020-08-21 18:09:21 +03:00
Gerasimos (Makis) Maropoulos
02c85c27cc add on-site documentation for the new 'apps' subpackage 2020-08-21 04:19:13 +03:00
Gerasimos (Makis) Maropoulos
cb80e43ff0 rewrite middleware: add subdomain redirect example 2020-08-20 16:34:19 +03:00
Gerasimos (Makis) Maropoulos
ffae9c0d09 rewrite middleware: add PrimarySubdomain and simplify its usage example 2020-08-20 03:05:47 +03:00
Gerasimos (Makis) Maropoulos
12737c5b7f implement a rewrite middleware 2020-08-19 22:40:17 +03:00
Gerasimos (Makis) Maropoulos
dddfeb9ca9 add options feature on apps package and add a SetHost option to force host on multiple subdomains that should mean the same exact application, so any handler should run based on the same Host field 2020-08-19 05:32:21 +03:00
Gerasimos (Makis) Maropoulos
bdb94bbae2 request logger middleware: add graphical information about executed route's handlers 2020-08-19 01:24:36 +03:00
Gerasimos (Makis) Maropoulos
4228dd8ea4 add some MVC error handle examples 2020-08-18 23:14:11 +03:00
Gerasimos (Makis) Maropoulos
35ab1de212 add TraceRoute feature on request logger 2020-08-18 19:33:07 +03:00
Gerasimos (Makis) Maropoulos
e98fd21c83 README: update supporters
there are four more waiting for github username confirmation
2020-08-18 19:02:20 +03:00
Gerasimos (Makis) Maropoulos
a491cdf7ef implement #1593 - Read HISTORY.md
updated example: https://github.com/kataras/iris/blob/master/_examples/i18n/main.go#L28-L50
2020-08-18 08:05:51 +03:00
Gerasimos (Makis) Maropoulos
1192e6f787 fix https://github.com/kataras/iris/issues/1594 2020-08-18 05:42:48 +03:00
Gerasimos (Makis) Maropoulos
5481b9a6c1 apps.Switch(apps.Hosts...) example 2020-08-18 04:17:53 +03:00
Gerasimos (Makis) Maropoulos
589c8c6242 new apps/switch (beta) 2020-08-17 21:53:17 +03:00
Gerasimos (Makis) Maropoulos
a61f743fa8 add internal subdomain redirect handler
TODO more things
2020-08-16 20:16:49 +03:00
Gerasimos (Makis) Maropoulos
f8ac760f69 i18n: subdomain code: set from cookie if settings allow it, so multiple subdomain redirections can set the language correctly instead of falling back to the default one 2020-08-16 18:37:00 +03:00
Gerasimos (Makis) Maropoulos
177b05b674 see prev commit 2020-08-16 18:09:10 +03:00
Gerasimos (Makis) Maropoulos
227170fd33 see https://github.com/kataras/iris/issues/1591#issuecomment-674473247 2020-08-16 18:04:52 +03:00
Gerasimos (Makis) Maropoulos
889b7942d3 add two new examples and share the app's specific logger instance with sessions databases and APIBuilder 2020-08-16 07:07:36 +03:00
Gerasimos (Makis) Maropoulos
ef7d365e81 add iris.Minify middleware and Context.OnCloseErr/OnConnectionCloseErr 2020-08-15 17:21:57 +03:00
Gerasimos (Makis) Maropoulos
ab226d925a fix https://github.com/kataras/iris/issues/1590 2020-08-15 15:40:41 +03:00
Gerasimos (Makis) Maropoulos
c22cb3a188 add godocs for https://github.com/kataras/iris/issues/1589 2020-08-15 12:24:51 +03:00
Gerasimos (Makis) Maropoulos
8340285e7d fix #1588 2020-08-15 12:17:48 +03:00
Gerasimos (Makis) Maropoulos
d0d7679a98 minor 2020-08-14 14:18:41 +03:00
Gerasimos (Makis) Maropoulos
9f0872719f fix SubdomainRedirect on loopbacks
fix: https://github.com/kataras/iris/issues/1584#issuecomment-674001454
2020-08-14 14:14:29 +03:00
Gerasimos (Makis) Maropoulos
dc35391ceb fix https://github.com/kataras/iris/issues/1584 2020-08-14 13:04:48 +03:00
Gerasimos (Makis) Maropoulos
558d6d41bb update dependencies 2020-08-14 12:37:46 +03:00
Gerasimos (Makis) Maropoulos
5f235993ee fix Context.Proceed called on last handler in the chain
relative: https://github.com/kataras/iris/issues/1581#issuecomment-673958152
2020-08-14 11:53:38 +03:00