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.

17 lines
436 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("/", &controllers.ListController)
  10. router.Static("/ui/", server.Main.Config.Directories.UI)
  11. server.Main.Start()
  12. }