summaryrefslogtreecommitdiff
path: root/srv/src/post/post.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 08:36:52 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 08:42:54 -0600
commit1242be7cfec1faa6a880d625307e32a1a91937ac (patch)
treec0dc03c6d384b7e6757eb6076d9208c7c038cb3f /srv/src/post/post.go
parent5a997781871db4c1f504e2f59e14541bb1e62dcb (diff)
Implement posts index page
Diffstat (limited to 'srv/src/post/post.go')
-rw-r--r--srv/src/post/post.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/srv/src/post/post.go b/srv/src/post/post.go
index 3eab9bc..766a543 100644
--- a/srv/src/post/post.go
+++ b/srv/src/post/post.go
@@ -36,12 +36,6 @@ type Post struct {
Body string
}
-// HTTPPath returns the relative URL path of the StoredPost, when querying it
-// over HTTP.
-func (p Post) HTTPPath() string {
- return fmt.Sprintf("%s.html", p.ID)
-}
-
// StoredPost is a Post which has been stored in a Store, and has been given
// some extra fields as a result.
type StoredPost struct {