swagger docs added

This commit is contained in:
nquidox 2026-03-01 22:15:10 +03:00
parent 2d965d53ac
commit f962cd8cd9
5 changed files with 585 additions and 0 deletions

View file

@ -4,12 +4,17 @@ import (
"context"
log "github.com/sirupsen/logrus"
"merch-api/config"
_ "merch-api/docs"
"merch-api/internal/app"
"os"
"os/signal"
"syscall"
)
// @Title Merch API
// @Version 2.3
// @Description Stores data about merch and prices
// @BasePath /api/v2
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()