2024-12-16 13:34:07 -05:00
|
|
|
package rest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
|
|
)
|
|
|
|
|
|
|
|
type usersAPI struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ua *usersAPI) Subrouter() http.Handler {
|
|
|
|
r := chi.NewMux()
|
|
|
|
|
2025-02-25 21:42:07 -05:00
|
|
|
r.Get("/{user}", ua.getUser)
|
2024-12-16 13:34:07 -05:00
|
|
|
|
|
|
|
return r
|
|
|
|
}
|
|
|
|
|
2025-02-25 21:42:07 -05:00
|
|
|
func (ua *usersAPI) getUser(w http.ResponseWriter, r *http.Request) {
|
2024-12-16 13:34:07 -05:00
|
|
|
}
|