go-jwt-auth

command module
v0.0.0-...-61bc911 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

README

go-jwt-auth

Запуск

docker-compose up -d
go install
go run main.go

Ручки (localhost:8080)

POST("/login", controllers.Login)
POST("/signup", controllers.Signup)
POST("/refresh, controllers.Refresh)
GET("/home", middlewares.IsAuthorized(), controllers.Home)
GET("/premium", controllers.Premium)
GET("/me", middlewares.IsAuthorized(), controllers.Me)
PATCH("/me", middlewares.IsAuthorized(), controllers.Update)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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