<p>Hi,</p>
<p>I am working on a small project which is developed with angular, angular app uses REST api developed with golang. As per requirement there will be multiple merchants ( shops ) who can register and access their admin panel on different subdomains like shop1.examplestore.com and shop2.examplestore.com. I already have build API and app but not sure how to load diffferent admin panels on subdomains for different merchants. Is there a article or guidelines for this type of requirement ?</p>
<p>Any help is appreciable.
Thanks</p>
<hr/>**评论:**<br/><br/>Frakturfreund: <pre><p>You can write a <a href="http://codepodu.com/subdomains-with-golang/" rel="nofollow">custom handler for your subdomains</a>, or you can use a <a href="http://www.gorillatoolkit.org/pkg/mux" rel="nofollow">router who has support for domains</a> already build in.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传