Categorygithub.com/mohemohe/echoHelper/v4
modulepackage
4.1.0
Repository: https://github.com/mohemohe/echohelper.git
Documentation: pkg.go.dev

# README

echoHelper

routing helper for labstack/echo

usage

package main

import (
	"github.com/labstack/echo/v4"
	"github.com/mohemohe/echoHelper"
	"controllers"
)

func main() {
	eh := echoHelper.New(echo.New())
	eh.RegisterRoutes([]echoHelper.Route{
		{echo.GET, "/api/v1/auth", auth.Get, nil},
		{echo.POST, "/api/v1/auth", auth.Post, nil},
		{echo.GET, "/api/v1/me", me.Get, nil},
		{echo.PUT, "/api/v1/me", me.Put, nil},
		{echo.GET, "/api/v1/users", users.Find, nil},
		{echo.GET, "/api/v1/users/:userId", users.Get, nil},
	})
	eh.Serve()
}

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author