The backend for the AiteStory website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
488 B

7 years ago
7 years ago
  1. package main
  2. import "git.aiterp.net/AiteRP/aitestory/server"
  3. import "git.aiterp.net/AiteRP/aitestory/controllers"
  4. import "git.aiterp.net/gisle/wrouter/auth"
  5. func main() {
  6. router := &server.Main.Router
  7. auth.Register(&controllers.WikiAthenticator{})
  8. router.Mount("/user", &controllers.UserController)
  9. router.Mount("/page", &controllers.PageController)
  10. router.Mount("/", &controllers.ListController)
  11. router.Static("/ui/", server.Main.Config.Directories.UI)
  12. server.Main.Start()
  13. }