diff --git a/api/post.copy.go b/api/post.copy.go new file mode 100644 index 0000000..4281b93 --- /dev/null +++ b/api/post.copy.go @@ -0,0 +1,12 @@ +package api + +import ( + "net/http" + + "github.com/labstack/echo/v4" +) + +func PostCopy(c echo.Context) error { + return c.String(http.StatusOK, ``) + +} diff --git a/go.mod b/go.mod index 8a477f3..055e946 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module goth.stack -go 1.22.0 +go 1.22 require github.com/alecthomas/chroma/v2 v2.12.0 diff --git a/main.go b/main.go index 1aef017..fab6386 100644 --- a/main.go +++ b/main.go @@ -72,6 +72,7 @@ func main() { // API Routes: apiGroup := e.Group("/api") apiGroup.GET("/ping", api.Ping) + apiGroup.GET("/post/copy", api.PostCopy) apiGroup.GET("/sse", func(c echo.Context) error { return api.SSE(c, pubSub) diff --git a/pages/templates/layouts/post.html b/pages/templates/layouts/post.html index b964e71..02c915f 100644 --- a/pages/templates/layouts/post.html +++ b/pages/templates/layouts/post.html @@ -32,12 +32,27 @@ {{end}} {{end}} + +
+ + + + + + Back + +