Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error in src/app_template.cr:1: while requiring "../config/application"
- require "../config/application"
- ^
- in config/application.cr:22: while requiring "./routes"
- require "./routes"
- ^
- in config/routes.cr:1: instantiating 'Amber::Server.class#configure()'
- Amber::Server.configure do
- ^~~~~~~~~
- in config/routes.cr:1: instantiating 'Amber::Server.class#configure()'
- Amber::Server.configure do
- ^~~~~~~~~
- in config/routes.cr:34: expanding macro
- routes :api do
- ^
- in macro 'routes' /home/necros/Documents/Dev/Crystal/app_template/lib/amber/src/amber/dsl/server.cr:2, line 1:
- > 1. router.draw :api, "" do
- 2. begin get("/foos/:id", GenericController(Foo), :show)
- 3. get("/bars/:id", GenericController(Bar), :show)
- 4. end
- 5. end
- 6.
- instantiating 'Amber::Router::Router#draw(Symbol, String)'
- in config/routes.cr:34: expanding macro
- routes :api do
- ^
- in macro 'routes' /home/necros/Documents/Dev/Crystal/app_template/lib/amber/src/amber/dsl/server.cr:2, line 1:
- > 1. router.draw :api, "" do
- 2. begin get("/foos/:id", GenericController(Foo), :show)
- 3. get("/bars/:id", GenericController(Bar), :show)
- 4. end
- 5. end
- 6.
- instantiating 'Amber::Router::Router#draw(Symbol, String)'
- in macro 'get' expanded macro: macro_140583407477856:2, line 1:
- > 1. route :get, "/foos/:id", GenericController(Foo), :show
- 2.
- 3. route :head, "/foos/:id", GenericController(Foo), :show
- 4.
- 5. route :get, "/foos/:id", GenericController(Foo), :show
- 6.
- 7. route :options, "/foos/:id", GenericController(Foo), :show
- 8.
- 9.
- expanding macro
- in macro 'route' /home/necros/Documents/Dev/Crystal/app_template/lib/amber/src/amber/dsl/router.cr:11, line 2:
- 1. __temp_1470 = ->(context : HTTP::Server::Context){
- > 2. controller = GenericController(Foo).new(context)
- 3. controller.run_before_filter(:show) unless context.content
- 4. unless context.content
- 5. context.content = controller.show.to_s
- 6. controller.run_after_filter(:show)
- 7. end
- 8. }
- 9. __temp_1471 = "GET"
- 10. __temp_1472 = Amber::Route.new(
- 11. __temp_1471, "/foos/:id", __temp_1470, :show, valve, scope, "GenericController(Foo)", {} of String => Regex
- 12. )
- 13.
- 14. router.add(__temp_1472)
- 15.
- expanding macro
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement