2023-01-02 10:50:37 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
|
|
|
2023-08-09 15:03:27 +00:00
|
|
|
"git.rpjosh.de/RPJosh/go-logger"
|
|
|
|
"git.rpjosh.de/ncDocConverter/internal/models"
|
2023-01-02 10:50:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Api struct {
|
2023-08-09 15:03:27 +00:00
|
|
|
Logger *logger.Logger
|
|
|
|
Config *models.WebConfig
|
2023-01-02 10:50:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (api *Api) SetupServer(router *chi.Mux) {
|
|
|
|
api.routes(router)
|
2023-08-09 15:03:27 +00:00
|
|
|
}
|