• This project
    • Loading...
  • Sign in

방승일 / mamuri-bot

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • mamuri-bot
  • bunjang
  • controller
  • controller.go
  • 윤준석's avatar
    ADD: router and controller · bcac1b53
    bcac1b53
    윤준석 authored 2022-05-22 02:27:01 +0900
controller.go 283 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package controller

import (
	"bunjang/service"
	"net/http"

	"github.com/labstack/echo/v4"
)

func Search(c echo.Context) error {
	keyword := c.Param("keyword")
	items, err := service.GetItemByKeyword(keyword)
	if err != nil {
		return err
	}
	return c.JSON(http.StatusOK, items)
}