middlewares

package
v0.0.0-...-892bc34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthOnly

func AuthOnly(next http.Handler) http.Handler

don't use it's working, it's not working

func SetContentType

func SetContentType(next http.Handler) http.Handler

SetContentType middleware go set content-type json in all routes

So that it is not necessary I set response.Header(... in all routes, I created this middleware, to be more practical

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL