Create route for root path, '/', with ServiceStack

前端 未结 3 1704
后悔当初
后悔当初 2020-12-31 11:10

I\'m trying to set a RestPath for root, \'/\', but its not allowing me to. Its saying RestPath \'/\' on Type \'MainTasks\' is not Valid

Is there a way t

3条回答
  •  执笔经年
    2020-12-31 11:41

    I have been trying to do this and found Christopher Davies method to no longer work in the latest service stack for a self hosted service. The following on my service that takes no parameters worked.

    [FallbackRoute("/")]

提交回复
热议问题