Comments (7)
@metacatdud How's that?
from oto.
That is the only way right now, sorry.
We use it to map to /api
or whatever is convenience. Yeah 404 is a bit annoying, but not sure how we could improve that, any suggestions are welcome
from oto.
@metacatdud revisiting this, do you think we should ask people to explicitly set the base path in the NewServer
constructor?
from oto.
Hey, either of these?
- Leave it as it is but make documentation clear that internally a prefix
/oto/
is set - Yes, allow devs to define in
NewServer
Frankly, I think is just a communication issue and can be addressed super easily by updating the documentation.
from oto.
I use the server.Basepath
in the http.Handle
to make it clear that they should be the same.
from oto.
Yes. Much better. Now you have full control of what is going on. We can close this.
from oto.
thanks @metacatdud
from oto.
Related Issues (20)
- Byte slice type not handled HOT 7
- Handling Cookies / Status Codes / any other HTTP related headers HOT 8
- Validation HOT 6
- Error handling server/client ? HOT 3
- Running go install HOT 1
- Unsupported time.Time (json.Marshaler/Unmarshaler?) HOT 2
- Python client HOT 8
- Copy struct tags to generated server.go HOT 2
- [question] How should errors be handled? HOT 2
- Comments are not copied correctly HOT 2
- With oto 0.11.0, TypeScript definitions with objects are wrong HOT 2
- Is there a way to do matching error on client side ? HOT 2
- Configurable templating engine
- Adopting Go generics HOT 1
- Support URLs as templates
- Support polymorphic unmarshaling
- Multiple Response HOT 2
- Source template name available in def
- Generate only selected interfaces?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oto.