1
0
mirror of https://github.com/kataras/iris.git synced 2026-03-08 01:16:30 +00:00

add iris.TrimParamFilePart

read more at: #2024
This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-12-24 05:04:16 +02:00
parent 85fd5ead04
commit 29c8f44c93
6 changed files with 144 additions and 3 deletions

View File

@@ -618,8 +618,13 @@ var (
// A shortcut for the `context#ErrPushNotSupported`.
ErrPushNotSupported = context.ErrPushNotSupported
// PrivateError accepts an error and returns a wrapped private one.
// A shortcut for the `context#PrivateError`.
// A shortcut for the `context#PrivateError` function.
PrivateError = context.PrivateError
// TrimParamFilePart is a middleware which trims any last part after a dot (.) character
// of the current route's dynamic path parameters.
// A shortcut for the `context#TrimParamFilePart` function.
TrimParamFilePart Handler = context.TrimParamFilePart
)
// HTTP Methods copied from `net/http`.