App.groovy 581 B

1234567891011121314151617181920212223242526272829303132
  1. // Our application config
  2. def persistorConf = [
  3. address: 'hello.persistor',
  4. db_name: 'hello_world',
  5. host: 'localhost'
  6. ]
  7. def permitted =
  8. [
  9. // Allow calls to get static album data from the persistor
  10. //[
  11. // 'address' : 'hello.persistor',
  12. // 'match' : [
  13. // 'action' : 'find',
  14. // 'collection' : 'users'
  15. // ]
  16. //]
  17. [
  18. 'address' : 'hello.persistor'
  19. ]
  20. ]
  21. container.with {
  22. // Deploy the busmods
  23. deployModule('vertx.mongo-persistor-v1.2.1', persistorConf, 8)
  24. // Start the web server
  25. deployVerticle('WebServer', ['permitted': permitted], 8)
  26. }