OxygenFramework / Oxygen.jl

💨 A breath of fresh air for programming web apps in Julia
https://oxygenframework.github.io/Oxygen.jl/
MIT License
409 stars 25 forks source link

How do I use server defined in a package? #120

Closed asjir closed 1 year ago

asjir commented 1 year ago

I've created a repo That just uses a module from demo I've tried dev ...; using RouterDemo; serve() and no routes get registered. On the other hand, if I copy the main file from my package, into my terminal, and then serve() it works fine. How do I fix this?

ndortega commented 1 year ago

Hi @asjir,

Please take a look at this closed issue on the same topic. https://github.com/ndortega/Oxygen.jl/issues/115 It should have all the info you need to get your package working, please don't hesitate to let me know if you need any further clarification around this.

asjir commented 1 year ago

it's worked, thank you sm, I used the init @eval method