kopia lustrzana https://github.com/reiver/greatape
21 wiersze
628 B
Go
21 wiersze
628 B
Go
package handlers
|
|
|
|
import . "github.com/xeronith/diamante/contracts/network/http"
|
|
|
|
type httpHandlerFactory struct{}
|
|
|
|
func (factory *httpHandlerFactory) Handlers() []IHttpHandler {
|
|
return []IHttpHandler{
|
|
EchoHandler(), // │ P . /api/v1/echo
|
|
SignupHandler(), // │ P . /api/v1/signup
|
|
VerifyHandler(), // │ P . /api/v1/verify
|
|
LoginHandler(), // │ P . /api/v1/login
|
|
GetProfileByUserHandler(), // │ G . /api/v1/profile
|
|
UpdateProfileByUserHandler(), // │ P . /api/v1/profile
|
|
}
|
|
}
|
|
|
|
func NewFactory() IHttpHandlerFactory {
|
|
return &httpHandlerFactory{}
|
|
}
|