rework of hubs

This commit is contained in:
2026-04-29 19:32:26 +02:00
parent 6378966267
commit 909d222a89
5 changed files with 80 additions and 334 deletions
+3 -3
View File
@@ -8,16 +8,16 @@ import (
"go-socket/packages/config"
)
type postType uint8
type requestType uint8
const (
normal postType = iota
normal requestType = iota
file
avatar
profileBg
)
func validCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt postType) bool {
func validCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt requestType) bool {
var maxSize int64
switch pt {
case file: