Welcome Guest, Not a member yet? Register   Sign In
Routing by Header
#1
Question 

So I have an API that I want to route by the header `Accept`. How do you do this with the routing in CI 3?

So if you nav to www.site.com/api/user it will look at the header Accept find the version in the header and then route to that controller class. I need this in order to manage api versions in the header.
Reply


Messages In This Thread
Routing by Header - by allencoded - 10-06-2015, 03:46 PM
RE: Routing by Header - by slax0r - 10-07-2015, 12:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB