dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Must I use a domain name prefix? #1669

Closed StringKe closed 5 years ago

StringKe commented 5 years ago
Q A
Bug? no
New Feature? no
Framework Laravel
Framework version 5.8.26
Package version 2.3
PHP version 7.3

I used IP as the site to access, this is to avoid the confusion of DNS resolution in China, my project will not use the domain name

specialtactics commented 5 years ago

You can leave the API_DOMAIN blank, but you will need to set the API_PREFIX, yes (in which case, you can use it with any domain, so long as the prefix is correct). One of those two must be set though.