Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

rename cert and go file (#141)

Guilherme Oenning76ac7e165b22
diff --git a/etc/README.md b/etc/README.md
new file mode 100644
index 000000000..0a6b86b27
--- /dev/null
+++ b/etc/README.md
@@ -0,0 +1 @@
+`development.crt` is a self-generated certificate for testing SSL locally. It SHOULD NOT be used to host any production Fider instance.
\ No newline at end of file
diff --git a/etc/server.crt b/etc/development.crt
similarity index 100%
rename from etc/server.crt
rename to etc/development.crt
diff --git a/etc/server.key b/etc/development.key
similarity index 100%
rename from etc/server.key
rename to etc/development.key
diff --git a/router.go b/routes.go
similarity index 94%
rename from router.go
rename to routes.go
index d23c277b3..981317328 100644
--- a/router.go
+++ b/routes.go
@@ -11,18 +11,8 @@ import (
"github.com/getfider/fider/app/pkg/env"
"github.com/getfider/fider/app/pkg/oauth"
"github.com/getfider/fider/app/pkg/web"
- "github.com/getfider/fider/app/storage"
)
-// AppServices holds reference to all Fider services
-type AppServices struct {
- OAuth oauth.Service
- User storage.User
- Tenant storage.Tenant
- Idea storage.Idea
- Settings *models.AppSettings
-}
-
func initEmailer() email.Sender {
if env.IsDefined("MAILGUN_API") {
return mailgun.NewSender(env.MustGet("MAILGUN_DOMAIN"), env.MustGet("MAILGUN_API"))
diff --git a/router_test.go b/routes_test.go
similarity index 100%
rename from router_test.go
rename to routes_test.go