diff --git a/blogo/gitea/gitea.go b/blogo/gitea/gitea.go index c5641d6..8cd8488 100644 --- a/blogo/gitea/gitea.go +++ b/blogo/gitea/gitea.go @@ -17,6 +17,7 @@ package gitea import ( "fmt" + "io/fs" "net/http" "net/url" "strings" @@ -76,3 +77,7 @@ func New(owner, repo, apiUrl string, opts ...Opts) blogo.Plugin { func (p *plugin) Name() string { return pluginName } + +func (p *plugin) Source() (fs.FS, error) { + return newRepositoryFS(p.owner, p.repo, p.ref, p.client), nil +} diff --git a/blogo/gitea/source.go b/blogo/gitea/source.go deleted file mode 100644 index 5e8eafe..0000000 --- a/blogo/gitea/source.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2025-present Gustavo "Guz" L. de Mello -// Copyright 2025-present The Lored.dev Contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package gitea - -import ( - "io/fs" -) - -func (p *plugin) Source() (fs.FS, error) { - return nil, nil -}