Merge: Nitsmell : Adding new code smells and print console updated
[nit.git] / src / nitweb.nit
index 95b1671..370e2a2 100644 (file)
 # Runs a webserver based on nitcorn that render things from model.
 module nitweb
 
-import popcorn::pop_auth
 import frontend
 import web
 import doc::doc_down
 
-redef class NitwebConfig
-
-       # Github client id used for Github OAuth login.
-       #
-       # * key: `github.client_id`
-       # * default: ``
-       fun github_client_id: String do return ini["github.client.id"] or else ""
-
-       # Github client secret used for Github OAuth login.
-       #
-       # * key: `github.client_secret`
-       # * default: ``
-       fun github_client_secret: String do return ini["github.client.secret"] or else ""
-end
-
 redef class ToolContext
 
        # Path to app config file.
@@ -79,6 +63,7 @@ private class NitwebPhase
        do
                var config = build_config(toolcontext, mainmodule)
                config.model.nitdoc_md_processor = config.md_processor
+               config.build_catalog
 
                var app = new App