// Code generated by goctl. DO NOT EDIT.
// goctl <no value>

package ownposts

import (
	"net/http"

	"apps/backend/internal/logic/ownposts"
	"apps/backend/internal/response"
	"apps/backend/internal/svc"
)

func OwnPostsLastSyncedHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := ownposts.NewOwnPostsLastSyncedLogic(r.Context(), svcCtx)
		data, err := l.OwnPostsLastSynced()
		response.Write(r.Context(), w, data, err)
	}
}
