~evanj/cms

ref: 34b3875dddf3e9096221b155abcb25ad2e7aeecc cms/internal/c/space/space.go -rw-r--r-- 451 bytes
34b3875dEvan M Jones Feat(*): Project init. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package space

import (
	"log"
	"net/http"

	"git.sr.ht/~evanj/cms/internal/c"
	"git.sr.ht/~evanj/cms/internal/m/user"
)

type Space struct {
	*c.Controller
	log *log.Logger
	db  dber
}

type dber interface {
	UserGetFromToken(token string) (user.User, error)
}

func New(log *log.Logger, db dber) *Space {
	return &Space{
		c.New(log, db),
		log,
		db,
	}
}

func (s *Space) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	http.NotFound(w, r)
}