init repo from gemini capsule project
This commit is contained in:
commit
cc78733a45
10 changed files with 901 additions and 0 deletions
17
internal/microblog/handler.go
Normal file
17
internal/microblog/handler.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package microblog
|
||||
|
||||
import (
|
||||
"gemini_site/internal/pocketbase"
|
||||
|
||||
gemini "github.com/kulak/gemini"
|
||||
)
|
||||
|
||||
// Handler interface for microblog functionality
|
||||
type Handler interface {
|
||||
HandleBlogRequest(w gemini.ResponseWriter, req *gemini.Request)
|
||||
}
|
||||
|
||||
// NewHandler creates a new microblog handler
|
||||
func NewHandler(pbClient *pocketbase.PocketBaseClient) Handler {
|
||||
return NewMicroBlog(pbClient)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue